Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions sr_robot_launch/launch/sr_hardware_control_loop.launch
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
<!-- Set to true to spawn the position controllers for the arm-->
<arg name="arm_position" default="$(eval not arm_trajectory)"/>
<arg name="arm_speed_scale" default="0.5"/>
<arg name="kinematics_config" default="$(find ur_description)/config/ur10_default.yaml"/>
<arg if="$(arg arm)" name="kinematics_config" default="$(find ur_description)/config/ur10_default.yaml"/>
<arg unless="$(arg arm)" name="kinematics_config" default=""/>
<arg name="urcap_program_name" default="external_ctrl.urp"/>
<arg name="load_robot_description_command" default="xacro $(arg robot_description) prefix:=$(arg hand_id)_ initial_z:=$(arg initial_z) kinematics_config:=$(arg kinematics_config)"/>

Expand All @@ -64,7 +65,7 @@
</group>

<!-- So that the driver can check we're loading the right calibration -->
<rosparam command="load" file="$(arg kinematics_config)" ns="$(arg arm_prefix)_sr_ur_robot_hw"/>
<rosparam if="$(arg arm)" command="load" file="$(arg kinematics_config)" ns="$(arg arm_prefix)_sr_ur_robot_hw"/>

<include file="$(find sr_robot_launch)/launch/unimanual_controller_stopper.launch">
<arg name="side" value="$(arg side)"/>
Expand Down Expand Up @@ -132,7 +133,7 @@
</rosparam>

<!-- These will be loaded if hand is false so UR10 with box will load instead. -->
<group unless="$(arg hand)">
<group if="$(eval not arg('hand') and arg('arm'))">
<include file="$(find ros_ethercat_model)/launch/joint_state_publisher.launch">
<arg name="publish_rate" value="$(arg joint_state_pub_frequency)"/>
</include>
Expand Down