Skip to content

Commit

Permalink
Specify only the diff controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
tahsinkose committed Oct 27, 2024
1 parent 552f1f6 commit e365194
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ur5_moveit_config/launch/moveit_planning_execution.launch
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<launch>
<arg name="sim" default="false" />
<arg name="debug" default="false" />
<arg name="controller_name" default="eff_joint_traj_controller"/>

<!-- Remap follow_joint_trajectory -->
<remap if="$(arg sim)" from="/scaled_pos_joint_traj_controller/follow_joint_trajectory" to="/pos_joint_traj_controller/follow_joint_trajectory"/>
<remap if="$(arg sim)" from="/scaled_pos_joint_traj_controller/follow_joint_trajectory" to="/$(arg controller_name)/follow_joint_trajectory"/>

<!-- Launch moveit -->
<include file="$(find ur5_moveit_config)/launch/move_group.launch">
Expand Down
5 changes: 3 additions & 2 deletions ur5_moveit_tutorials/launch/ur5_moveit_servo_common.launch
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0"?>
<launch>
<arg name="controllers" doc="Which controllers to launch"/>
<arg name="controller" doc="Which additional controller to launch"/>
<arg name="servo_params_file" doc="The servo parameters configuration file"/>
<include file="$(find ur_gazebo)/launch/ur5_bringup.launch">
<arg name="controllers" value="$(arg controllers)"/>
<arg name="controllers" value="joint_state_controller $(arg controller)"/>
<arg name="stopped_controllers" value=""/>
<arg name="transmission_hw_interface" value="hardware_interface/PositionJointInterface"/>
<arg name="paused" value="true"/>
Expand All @@ -12,6 +12,7 @@
</include>
<include file="$(find ur5_moveit_config)/launch/moveit_planning_execution.launch">
<arg name="sim" value="true"/>
<arg name="controller_name" value="$(arg controller)"/>
</include>

<node name="$(anon rviz)" pkg="rviz" type="rviz" respawn="false"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<launch>
<include file="$(find ur5_moveit_tutorials)/launch/ur5_moveit_servo_common.launch">
<arg name="controllers" value="joint_state_controller joint_group_pos_controller"/>
<arg name="controller" value="joint_group_pos_controller"/>
<arg name="servo_params_file" value="$(find ur5_moveit_tutorials)/config/joint_group_servo_params.yaml"/>
</include>
</launch>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<launch>
<include file="$(find ur5_moveit_tutorials)/launch/ur5_moveit_servo_common.launch">
<arg name="controllers" value="joint_state_controller pos_joint_traj_controller"/>
<arg name="controller" value="pos_joint_traj_controller"/>
<arg name="servo_params_file" value="$(find ur5_moveit_tutorials)/config/pos_joint_traj_servo_params.yaml"/>
</include>
</launch>

0 comments on commit e365194

Please sign in to comment.