Skip to content

Commit 2cad5a4

Browse files
tony2guoTony Guo
andauthored
add joint_state_publisher_gui (#40)
Co-authored-by: Tony Guo <tonyguo@gyro.com.tw>
1 parent fa02b7a commit 2cad5a4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

launch/display.launch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<arg name="rvizconfig" default="$(find urdf_tutorial)/rviz/urdf.rviz" />
66

77
<param name="robot_description" command="$(find xacro)/xacro $(arg model)" />
8-
<param name="use_gui" value="$(arg gui)"/>
98

10-
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
9+
<node if="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher_gui" type="joint_state_publisher_gui" />
10+
<node unless="$(arg gui)" name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" />
1111
<node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />
1212
<node name="rviz" pkg="rviz" type="rviz" args="-d $(arg rvizconfig)" required="true" />
1313

package.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
<buildtool_depend>catkin</buildtool_depend>
1414
<build_depend>roslaunch</build_depend>
1515
<run_depend>joint_state_publisher</run_depend>
16+
<run_depend>joint_state_publisher_gui</run_depend>
1617
<run_depend>robot_state_publisher</run_depend>
1718
<run_depend>rviz</run_depend>
1819
<run_depend>xacro</run_depend>

0 commit comments

Comments
 (0)