|
67 | 67 | safety_pos_margin:=0.15 |
68 | 68 | safety_k_position:=20 |
69 | 69 | use_fake_hardware:=false |
| 70 | + use_custom_simulator:=false |
70 | 71 | fake_sensor_commands:=false |
71 | 72 | sim_gazebo:=false |
72 | 73 | sim_ignition:=false |
|
97 | 98 | force_abs_paths="${sim_gazebo or sim_ignition}"/> |
98 | 99 |
|
99 | 100 |
|
100 | | - <!-- ros2 control include --> |
101 | | - <xacro:include filename="$(find ur_description)/urdf/ur.ros2_control.xacro" /> |
102 | | - <!-- ros2 control instance --> |
103 | | - <xacro:ur_ros2_control |
104 | | - name="${name}" prefix="${prefix}" |
105 | | - use_fake_hardware="${use_fake_hardware}" |
106 | | - initial_positions="${initial_positions}" |
107 | | - fake_sensor_commands="${fake_sensor_commands}" |
108 | | - headless_mode="${headless_mode}" |
109 | | - sim_gazebo="${sim_gazebo}" |
110 | | - sim_ignition="${sim_ignition}" |
111 | | - script_filename="${script_filename}" |
112 | | - output_recipe_filename="${output_recipe_filename}" |
113 | | - input_recipe_filename="${input_recipe_filename}" |
114 | | - tf_prefix="" |
115 | | - hash_kinematics="${kinematics_hash}" |
116 | | - robot_ip="${robot_ip}" |
117 | | - use_tool_communication="${use_tool_communication}" |
118 | | - tool_voltage="${tool_voltage}" |
119 | | - tool_parity="${tool_parity}" |
120 | | - tool_baud_rate="${tool_baud_rate}" |
121 | | - tool_stop_bits="${tool_stop_bits}" |
122 | | - tool_rx_idle_chars="${tool_rx_idle_chars}" |
123 | | - tool_tx_idle_chars="${tool_tx_idle_chars}" |
124 | | - tool_device_name="${tool_device_name}" |
125 | | - tool_tcp_port="${tool_tcp_port}" |
126 | | - reverse_port="${reverse_port}" |
127 | | - script_sender_port="${script_sender_port}" |
128 | | - /> |
| 101 | + <!-- Support custom simulators. |
| 102 | + Users can specify their ros2_control and hardware tags inside their own robot description. |
| 103 | + This allows them to implement their own system_interface. --> |
| 104 | + <xacro:unless value="${use_custom_simulator}"> |
| 105 | + <!-- ros2 control include --> |
| 106 | + <xacro:include filename="$(find ur_description)/urdf/ur.ros2_control.xacro" /> |
| 107 | + <!-- ros2 control instance --> |
| 108 | + <xacro:ur_ros2_control |
| 109 | + name="${name}" prefix="${prefix}" |
| 110 | + use_fake_hardware="${use_fake_hardware}" |
| 111 | + initial_positions="${initial_positions}" |
| 112 | + fake_sensor_commands="${fake_sensor_commands}" |
| 113 | + headless_mode="${headless_mode}" |
| 114 | + sim_gazebo="${sim_gazebo}" |
| 115 | + sim_ignition="${sim_ignition}" |
| 116 | + script_filename="${script_filename}" |
| 117 | + output_recipe_filename="${output_recipe_filename}" |
| 118 | + input_recipe_filename="${input_recipe_filename}" |
| 119 | + tf_prefix="" |
| 120 | + hash_kinematics="${kinematics_hash}" |
| 121 | + robot_ip="${robot_ip}" |
| 122 | + use_tool_communication="${use_tool_communication}" |
| 123 | + tool_voltage="${tool_voltage}" |
| 124 | + tool_parity="${tool_parity}" |
| 125 | + tool_baud_rate="${tool_baud_rate}" |
| 126 | + tool_stop_bits="${tool_stop_bits}" |
| 127 | + tool_rx_idle_chars="${tool_rx_idle_chars}" |
| 128 | + tool_tx_idle_chars="${tool_tx_idle_chars}" |
| 129 | + tool_device_name="${tool_device_name}" |
| 130 | + tool_tcp_port="${tool_tcp_port}" |
| 131 | + reverse_port="${reverse_port}" |
| 132 | + script_sender_port="${script_sender_port}" |
| 133 | + /> |
| 134 | + </xacro:unless> |
129 | 135 |
|
130 | 136 | <!-- Add URDF transmission elements (for ros_control) --> |
131 | 137 | <!--<xacro:ur_arm_transmission prefix="${prefix}" hw_interface="${transmission_hw_interface}" />--> |
|
0 commit comments