Skip to content

Commit

Permalink
Add messages to plan for sequences (#65)
Browse files Browse the repository at this point in the history
This is a prerequisite for the Pilz Motion Planner.
  • Loading branch information
ct2034 authored and rhaschke committed May 12, 2020
1 parent a657cca commit f621f28
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ LinkScale.msg
MotionPlanRequest.msg
MotionPlanResponse.msg
MotionPlanDetailedResponse.msg
MotionSequenceItem.msg
MotionSequenceRequest.msg
MotionSequenceResponse.msg
MoveItErrorCodes.msg
TrajectoryConstraints.msg
ObjectColor.msg
Expand Down Expand Up @@ -64,6 +67,7 @@ GetPlanningScene.srv
GraspPlanning.srv
ApplyPlanningScene.srv
QueryPlannerInterfaces.srv
GetMotionSequence.srv
GetPositionFK.srv
GetPositionIK.srv
GetPlannerParams.srv
Expand All @@ -83,6 +87,7 @@ ChangeDriftDimensions.srv
set(ACT_FILES
ExecuteTrajectory.action
MoveGroup.action
MoveGroupSequence.action
Pickup.action
Place.action
)
Expand Down
14 changes: 14 additions & 0 deletions action/MoveGroupSequence.action
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# A list of motion commands - one for each section of the sequence
MotionSequenceRequest request

# Planning options
PlanningOptions planning_options
---

# Response comprising information on all sections of the sequence
MotionSequenceResponse response

---

# The internal state that the move group action currently is in
string state
7 changes: 7 additions & 0 deletions msg/MotionSequenceItem.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# The plan request for this item.
# It is the planning request for this segment of the sequence, as if it were a solitary motion.
MotionPlanRequest req

# To blend between sequence items, the motion may be smoothed using a circular motion.
# The blend radius of the circle between this and the next command, where 0 means no blending.
float64 blend_radius
3 changes: 3 additions & 0 deletions msg/MotionSequenceRequest.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# List of motion planning request with a blend_radius for each.
# In the response of the planner all of these will be executable as one sequence.
MotionSequenceItem[] items
11 changes: 11 additions & 0 deletions msg/MotionSequenceResponse.msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# An error code reflecting what went wrong
MoveItErrorCodes error_code

# The full starting state of the robot at the start of the sequence
RobotState sequence_start

# The trajectories that the planner produced for execution
RobotTrajectory[] planned_trajectories

# The amount of time it took to complete the motion plan
float64 planning_time
6 changes: 6 additions & 0 deletions srv/GetMotionSequence.srv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Planning request with a list of motion commands
MotionSequenceRequest request

---
# Response to the planning request
MotionSequenceResponse response

0 comments on commit f621f28

Please sign in to comment.