Skip to content

Commit

Permalink
Fixed launch files for mars rover (space-ros#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
namikxgithub authored and jasmeet0915 committed Sep 6, 2024
1 parent bbed18f commit 8e24abc
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions custom_gz_plugins/launch/demo_world.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ 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])}
':'.join([mars_rover_demos_path, mars_rover_models_path + '/models'])}

urdf_model_path = os.path.join(mars_rover_models_path, 'models', 'curiosity_path',
'urdf', 'curiosity_mars_rover.xacro.urdf')

doc = xacro.process_file(urdf_model_path)
robot_description = {'robot_description': doc.toxml()}

decalare_world_name_arg = DeclareLaunchArgument('world_name', default_value='mars_gale_crater_patch1.sdf',
declare_world_name_arg = DeclareLaunchArgument('world_name', default_value='mars_gale_crater_patch1.sdf',
description='Name of the world file to launch in Gazebo')
world_name = LaunchConfiguration('world_name')

Expand Down
2 changes: 1 addition & 1 deletion mars_rover/launch/mars_rover.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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])}
':'.join([mars_rover_demos_path, mars_rover_models_path + '/models'])}

urdf_model_path = os.path.join(mars_rover_models_path, 'models', 'curiosity_path',
'urdf', 'curiosity_mars_rover.xacro')
Expand Down
Empty file modified mars_rover/nodes/move_arm
100644 → 100755
Empty file.
Empty file modified mars_rover/nodes/move_mast
100644 → 100755
Empty file.
Empty file modified mars_rover/nodes/move_wheel
100644 → 100755
Empty file.
Empty file modified mars_rover/nodes/run_demo
100644 → 100755
Empty file.

0 comments on commit 8e24abc

Please sign in to comment.