-
Notifications
You must be signed in to change notification settings - Fork 97
Open
Description
Hello, I would like to ask how to replace my own physical platform in aerial_gym_simulator and what problems may arise.
- We exported the ros package of urdf in SW2024 and unzipped it to src/aerial_gym_simulator/resources/robots. See the directory as follows
(base) zhw@ubuntu-3090:~/workspaces/aerial_gym_ws/src/aerial_gym_simulator/resources/robots/hs_urdf$ tree
.
├── CMakeLists.txt
├── config
│ └── joint_names_hs_urdf.yaml
├── export.log
├── launch
│ ├── display.launch
│ └── gazebo.launch
├── meshes
│ ├── base_link.STL
│ ├── base_link_to_back_left_prop.STL
│ ├── base_link_to_back_right_prop.STL
│ ├── base_link_to_front_left_prop.STL
│ └── base_link_to_front_right_prop.STL
├── package.xml
├── textures
└── urdf
├── base_link.STL
├── base_link_to_back_left_prop.STL
├── base_link_to_back_right_prop.STL
├── base_link_to_front_left_prop.STL
├── base_link_to_front_right_prop.STL
├── hs_urdf.csv
└── hs_urdf.urdf
- Register the drone (quadcopter) configuration file in
src/aerial_gym_simulator/aerial_gym/robots/__init__.py
and add
robot_registry.register("hs_urdf", BaseMultirotor, HsUrdfCfg)
- Add our drone configuration file in the config folder
src/aerial_gym_simulator/aerial_gym/config/robot_config/hs_urdf_config.py
The asset import code is as follows
asset_folder = f"{AERIAL_GYM_DIRECTORY}/resources/robots/hs_urdf"
file = "urdf/hs_urdf.urdf"
name = "hs_urdf"
base_link_name = "base_link"
- Finally, modify the robot_name used in the navigation task configuration file
src/aerial_gym_simulator/aerial_gym/config/task_config/navigation_task_config.py
robot_name = "hs_urdf"
After the above operations, I found that when I turned on rendering for training
python3 runner.py --task=navigation_task --num_envs=512 --headless=False
I found that it was not replaced with our drone model. Is there any problem with the above steps?
Metadata
Metadata
Assignees
Labels
No labels