diff --git a/launch/franka_control.launch b/launch/franka_control.launch index efb0c206bf541249ebcad92481106340d93b47f2..de71abbbf207d8694fa50502e49e325ddb503bf8 100644 --- a/launch/franka_control.launch +++ b/launch/franka_control.launch @@ -2,8 +2,11 @@ <launch> <!-- Launch real-robot control --> <include file="$(find franka_control)/launch/franka_control.launch" pass_all_args="true" /> + <!-- By default use joint position controllers --> <arg name="transmission" default="position" /> + <!-- Start ROS controllers --> + <include file="$(dirname)/ros_controllers.launch" pass_all_args="true" /> <!-- as well as MoveIt demo --> <include file="$(dirname)/demo.launch" pass_all_args="true"> diff --git a/launch/ros_controllers.launch b/launch/ros_controllers.launch index 8fd5760e31519a16e994a42dc6c102d4a2755cd3..47806e5ab51a073b3e7310276a747f612e2bfd8d 100644 --- a/launch/ros_controllers.launch +++ b/launch/ros_controllers.launch @@ -5,6 +5,6 @@ <rosparam file="$(find panda_moveit_config)/config/ros_controllers.yaml" command="load" subst_value="true"/> <!-- Load and start the controllers --> - <node ns="/$(arg arm_id)" name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" + <node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="$(arg transmission)_joint_trajectory_controller" /> </launch> diff --git a/launch/simple_moveit_controller_manager.launch.xml b/launch/simple_moveit_controller_manager.launch.xml index 3640908bc4556cba8aebfb365c48fed9ba66c3cc..44e6d6c65a9d63028f59ff826071dfd53c658faa 100644 --- a/launch/simple_moveit_controller_manager.launch.xml +++ b/launch/simple_moveit_controller_manager.launch.xml @@ -4,6 +4,4 @@ <!-- Load controller list to the parameter server --> <rosparam subst_value="true" file="$(find panda_moveit_config)/config/simple_moveit_controllers.yaml" /> - <!-- Start ROS controllers --> - <include file="$(dirname)/ros_controllers.launch" pass_all_args="true" /> </launch>