Skip to content

Commit

Permalink
[dynamixel_general_hw] Enable to respawn control node
Browse files Browse the repository at this point in the history
  • Loading branch information
pazeshun committed Dec 17, 2024
1 parent bfba5ab commit daf10e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions dynamixel_general_hw/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ Optional Arguments:
publish_input_voltage (default "true"): Whether to publish Dynamixel actuator input voltage
publish_temperature (default "true"): Whether to publish Dynamixel actuator temperature
required (default "true"): Whether to kill entire roslaunch if control node dies
respawn (default "false"): Whether to restart control node automatically if it quits
robot_description_param (default "robot_description"): Name of robot_description parameter read by the nodes started by this launch file. If this is a relative name, its global name becomes (namespace)/(robot_description_param)
rvizconfig (default "/home/pazeshun/catkin_ws/src/dynamixel-workbench/dynamixel_general_hw/config/sample_robot.rviz"): Configuration file for RViz
set_robot_description (default "true"): Whether to set robot_description parameter at launching
Expand Down
5 changes: 4 additions & 1 deletion dynamixel_general_hw/launch/dynamixel_general_control.launch
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
doc="Whether to start robot_state_publisher at launching" />
<arg name="required" default="true"
doc="Whether to kill entire roslaunch if control node dies" />
<arg name="respawn" default="false"
doc="Whether to restart control node automatically if it quits" />
<arg name="joint_states_topic" default="joint_states"
doc="Name of joint_states topic published and subscribed by the nodes started by this launch file. If this is a relative name, its global name becomes (namespace)/(joint_states_topic)" />
<arg name="control_rate" default="20"
Expand Down Expand Up @@ -55,7 +57,8 @@
<remap from="joint_states" to="$(arg joint_states_topic)"/>
</node>

<node name="dynamixel_general_control" pkg="dynamixel_general_hw" type="dynamixel_general_control_node" required="$(arg required)" output="screen">
<node name="dynamixel_general_control" pkg="dynamixel_general_hw" type="dynamixel_general_control_node"
required="$(arg required)" respawn="$(arg respawn)" output="screen">
<remap from="robot_description" to="$(arg robot_description_param)" />
<remap from="joint_states" to="$(arg joint_states_topic)" />
<rosparam subst_value="true">
Expand Down

0 comments on commit daf10e1

Please sign in to comment.