-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Demos for SDF #427
base: rolling
Are you sure you want to change the base?
Add Demos for SDF #427
Conversation
Signed-off-by: Aarav Gupta <[email protected]>
@ahcorde Can I get an initial review? |
@@ -0,0 +1,107 @@ | |||
# Copyright 2022 Open Source Robotics Foundation, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Copyright 2022 Open Source Robotics Foundation, Inc. | |
# Copyright 2024 Open Source Robotics Foundation, Inc. |
robot_description_content = Command( | ||
[ | ||
PathJoinSubstitution([FindExecutable(name='xacro')]), | ||
' ', | ||
PathJoinSubstitution( | ||
[FindPackageShare('gz_ros2_control_demos'), | ||
'sdf', 'test_diff_drive.xacro.sdf'] | ||
), | ||
] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need to do that, the sdf file doesn't have any xacro tag. You should read the file as it's
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you should be able to use something like from launch.substitutions import FileContent
Adds demos for SDF. Linked to #ros2_control/1763.
These demos should help in testing the PR.
A couple of things I want an opinion on:
sdf
directory is that okay or should something else be done?To test the diff_drive demo for SDF:
ros2 launch gz_ros2_control_demos diff_drive_example_sdf.launch.py
ros2 run gz_ros2_control_demos example_diff_drive
The simulation should show a behaviour similar to the diff_drive demo for URDF.