Skip to content

Commit 9acf43a

Browse files
authored
Add parameters for checking start state (#143)
* Add parameters for checking start state. * Sync with ros2_control_demos updates. * Adapt initial positions to default ur home position. * Fill all start states for fake system use.
1 parent d837e74 commit 9acf43a

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

Universal_Robots_ROS2_Driver.repos

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repositories:
1010
ros2_control_demos:
1111
type: git
1212
url: https://github.com/ros-controls/ros2_control_demos.git
13-
version: add_demo_nodes
13+
version: master
1414
ros2_controllers:
1515
type: git
1616
url: https://github.com/ros-controls/ros2_controllers.git

ur_bringup/config/test_goal_publishers_config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ publisher_scaled_joint_trajectory_controller:
1818
- wrist_2_joint
1919
- wrist_3_joint
2020

21+
check_starting_point: true
22+
starting_point_limits:
23+
shoulder_pan_joint: [-0.1,0.1]
24+
shoulder_lift_joint: [-1.6,-1.5]
25+
elbow_joint: [-0.1,0.1]
26+
wrist_1_joint: [-1.6,-1.5]
27+
wrist_2_joint: [-0.1,0.1]
28+
wrist_3_joint: [-0.1,0.1]
2129

2230
publisher_joint_trajectory_controller:
2331
ros__parameters:
@@ -38,3 +46,12 @@ publisher_joint_trajectory_controller:
3846
- wrist_1_joint
3947
- wrist_2_joint
4048
- wrist_3_joint
49+
50+
check_starting_point: true
51+
starting_point_limits:
52+
shoulder_pan_joint: [-0.1,0.1]
53+
shoulder_lift_joint: [-1.6,-1.5]
54+
elbow_joint: [-0.1,0.1]
55+
wrist_1_joint: [-1.6,-1.5]
56+
wrist_2_joint: [-0.1,0.1]
57+
wrist_3_joint: [-0.1,0.1]

ur_description/urdf/ur.ros2_control.xacro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
<state_interface name="position"/>
5252
<state_interface name="velocity"/>
5353
<state_interface name="effort"/>
54+
<param name="initial_position">0.0</param> <!-- initial position for the FakeSystem -->
5455
</joint>
5556
<joint name="${prefix}shoulder_lift_joint">
5657
<command_interface name="position">
@@ -78,6 +79,7 @@
7879
<state_interface name="position"/>
7980
<state_interface name="velocity"/>
8081
<state_interface name="effort"/>
82+
<param name="initial_position">0.0</param> <!-- initial position for the FakeSystem -->
8183
</joint>
8284
<joint name="${prefix}wrist_1_joint">
8385
<command_interface name="position">
@@ -91,6 +93,7 @@
9193
<state_interface name="position"/>
9294
<state_interface name="velocity"/>
9395
<state_interface name="effort"/>
96+
<param name="initial_position">-1.57</param> <!-- initial position for the FakeSystem -->
9497
</joint>
9598
<joint name="${prefix}wrist_2_joint">
9699
<command_interface name="position">
@@ -104,6 +107,7 @@
104107
<state_interface name="position"/>
105108
<state_interface name="velocity"/>
106109
<state_interface name="effort"/>
110+
<param name="initial_position">0.0</param> <!-- initial position for the FakeSystem -->
107111
</joint>
108112
<joint name="${prefix}wrist_3_joint">
109113
<command_interface name="position">
@@ -117,6 +121,7 @@
117121
<state_interface name="position"/>
118122
<state_interface name="velocity"/>
119123
<state_interface name="effort"/>
124+
<param name="initial_position">0.0</param> <!-- initial position for the FakeSystem -->
120125
</joint>
121126
<sensor name="tcp_fts_sensor">
122127
<state_interface name="force.x"/>

0 commit comments

Comments
 (0)