Added rbs_gym package for RL & multi-robot launch setup
This commit is contained in:
parent
f92670cd0d
commit
b58307dea1
103 changed files with 15170 additions and 653 deletions
|
@ -4,7 +4,7 @@ import math
|
|||
import os
|
||||
import sys
|
||||
import yaml
|
||||
from typing import Dict
|
||||
from typing import Any, Dict
|
||||
|
||||
from ament_index_python.packages import get_package_share_directory
|
||||
|
||||
|
@ -24,7 +24,7 @@ def construct_angle_degrees(loader, node) -> float:
|
|||
"""Utility function for converting degrees into radians from yaml."""
|
||||
return math.radians(construct_angle_radians(loader, node))
|
||||
|
||||
def load_yaml(package_name: str, file_path: str) -> Dict:
|
||||
def load_yaml(package_name: str, file_path: str) -> dict[str, Any]:
|
||||
package_path = get_package_share_directory(package_name)
|
||||
absolute_file_path = os.path.join(package_path, file_path)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue