Skip to content

Commit 069d153

Browse files
noah-wardlowdyackzan
authored andcommitted
Add missing URDF service files to fix CI build
- Add AddURDF.srv with urdf_name, urdf_string, urdf_pose fields - Add AttachURDF.srv with urdf_name field instead of tool_name - Add DetachOrRemoveURDF.srv with urdf_name field instead of tool_name - Update CMakeLists.txt to include new URDF service files - Fixes build error where moveit_studio_plugins was looking for missing URDF service headers after Tool->URDF migration
1 parent 839392a commit 069d153

File tree

4 files changed

+63
-0
lines changed

4 files changed

+63
-0
lines changed

moveit_studio_msgs/moveit_studio_agent_msgs/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ set(msg_files
3232

3333
set(srv_files
3434
"srv/AddTool.srv"
35+
"srv/AddURDF.srv"
3536
"srv/AttachTool.srv"
37+
"srv/AttachURDF.srv"
3638
"srv/DetachOrRemoveTool.srv"
39+
"srv/DetachOrRemoveURDF.srv"
3740
"srv/ClearStoredParameters.srv"
3841
"srv/EditWaypoints.srv"
3942
"srv/GetAgentInfo.srv"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Service to add URDF objects in the planning scene.
2+
# The URDF object is given as a URDF string, and is added to the planning scene at the specified pose.
3+
# Once the URDF object is added, its collision shapes will be updated in the planning scene according to the URDF joint values,
4+
# if those are published in /joint_states.
5+
6+
# The name of the URDF object to add to the planning scene.
7+
# It must not be in the planning scene already, otherwise an error will be returned.
8+
string urdf_name
9+
10+
# The URDF string.
11+
string urdf_string
12+
13+
# The pose at which the URDF object will be added.
14+
# Use a pose stamped so we can define the frame relative to which the URDF object will be added.
15+
geometry_msgs/PoseStamped urdf_pose
16+
17+
---
18+
# If the operation was successful.
19+
bool success
20+
21+
# If the operation was not successful, a message describing the error.
22+
string message
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Service to attach articulated URDF objects to the robot.
2+
# The URDF object given must already exist in the planning scene, and is attached to a specific link on the robot at the
3+
# current transform between the link and the URDF object.
4+
# Once the URDF object is attached, its collision shapes will be updated in the planning scene according to the URDF
5+
# joint values, if those are published in /joint_states.
6+
7+
# The name of the URDF object to attach.
8+
# It must not be attached already, otherwise an error will be returned.
9+
string urdf_name
10+
11+
# The name of the robot link to attach to.
12+
# It must exist in the robot URDF, otherwise an error will be returned.
13+
string parent_link_name
14+
15+
# Robot links this URDF object is allowed to collide with.
16+
string[] allowed_collision_links
17+
18+
---
19+
# If the operation was successful.
20+
bool success
21+
22+
# If the operation was not successful, a message describing the error.
23+
string message
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Service to detach URDF objects from the robot or remove them from the scene.
2+
3+
# The name of the URDF object to detach or remove.
4+
# If using this srv with the 'detach_urdf' service, the URDF object must have been
5+
# attached to the robot previously.
6+
# If using this srv with the 'remove_urdf_from_scene', the URDF object must have been
7+
# added to the scene previously.
8+
string urdf_name
9+
10+
---
11+
# If the operation was successful.
12+
bool success
13+
14+
# If the operation was not successful, a message describing the error.
15+
string message

0 commit comments

Comments
 (0)