Skip to content

Commit

Permalink
Updated setup launch file to provide URDF and SRDF parameter to Rviz …
Browse files Browse the repository at this point in the history
…for MoveIt planning scene display (#33)
  • Loading branch information
marip8 authored Mar 28, 2024
1 parent a0fd97b commit 60dfa15
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions launch/setup.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def declare_launch_arguments():

def generate_launch_description():
robot_description = ParameterValue(Command(['xacro ', LaunchConfiguration('robot_description_file')]), value_type=str)
robot_description_semantic = ParameterValue(Command(['cat ', LaunchConfiguration('robot_description_semantic_file')]), value_type=str)
nodes = [
# Robot state publisher
Node(package='robot_state_publisher',
Expand All @@ -41,6 +42,10 @@ def generate_launch_description():
executable='rviz2',
name='rviz2',
arguments=['-d', LaunchConfiguration('rviz_config')],
parameters=[
{'robot_description': robot_description,
'robot_description_semantic': robot_description_semantic},
],
output='screen')
]

Expand Down

0 comments on commit 60dfa15

Please sign in to comment.