Skip to content

Commit

Permalink
ADD: Make interactive marker configurable in panda.launch
Browse files Browse the repository at this point in the history
In some scenarios we want to start the cartesian_impedance_example controller
but command the equilibrium pose by ourselves. A running `interactive_marker`
node will keep publishing onto the topic, making it compete with our publisher.

To avoid breaking changes we make the presence of the node also configurable. By
default it will still be started whenever the cartesian impedance controller is
started but this can be deliberately overwritten by the user.
  • Loading branch information
gollth committed Jul 27, 2022
1 parent c74af0e commit 5da7096
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion franka_gazebo/launch/panda.launch
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
-J $(arg arm_id)_finger_joint1 0.001
-J $(arg arm_id)_finger_joint2 0.001"
/>
<arg name="interactive_marker" default="$(eval arg('controller') == 'cartesian_impedance_example_controller')" doc="Should the interactive marker node be started?" />

<include file="$(find gazebo_ros)/launch/empty_world.launch" if="$(arg gazebo)">
<arg name="world_name" value="$(arg world)"/>
Expand Down Expand Up @@ -90,7 +91,7 @@
<node name="interactive_marker"
pkg="franka_example_controllers"
type="interactive_marker.py"
if="$(eval arg('controller') == 'cartesian_impedance_example_controller')">
if="$(arg interactive_marker)">
<param name="link_name" value="$(arg arm_id)_link0" />
<remap to="cartesian_impedance_example_controller/equilibrium_pose" from="equilibrium_pose" />
</node>
Expand Down

0 comments on commit 5da7096

Please sign in to comment.