Skip to content

Commit

Permalink
Added XACRO to dependencies, corrected demo launch file (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
namikxgithub committed Sep 8, 2024
1 parent dc86a09 commit 3576c1b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions custom_gz_plugins/dependencies_source_pkgs.repos
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,7 @@ repositories:
type: git
url: https://github.com/ros2/yaml_cpp_vendor.git
version: humble
xacro:
type: git
url: https://github.com/ros/xacro.git
version: ros2
8 changes: 7 additions & 1 deletion custom_gz_plugins/launch/demo_world.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ def generate_launch_description():
':'.join([environ.get('GZ_SIM_SYSTEM_PLUGIN_PATH', default=''),
environ.get('LD_LIBRARY_PATH', default='')]),
'GZ_SIM_RESOURCE_PATH':
':'.join([mars_rover_demos_path, mars_rover_models_path + '/models'])}
':'.join([mars_rover_demos_path,
mars_rover_models_path + '/models',
mars_rover_demos_path + '/worlds'])}

urdf_model_path = os.path.join(mars_rover_models_path, 'models', 'curiosity_path',
'urdf', 'curiosity_mars_rover.xacro.urdf')
Expand Down Expand Up @@ -77,6 +79,10 @@ def generate_launch_description():
arguments=[
'-name', 'curiosity_path',
'-topic', robot_description,
"-z", "4",
"-x", "0",
"-y", "0",
"-Y", "0",
],
output='screen'
)
Expand Down

0 comments on commit 3576c1b

Please sign in to comment.