Added rbs_gym package for RL & multi-robot launch setup

This commit is contained in:
Ilya Uraev 2024-07-04 11:38:08 +00:00 committed by Igor Brylyov
parent f92670cd0d
commit b58307dea1
103 changed files with 15170 additions and 653 deletions

View file

@ -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)