Skip to content

Commit 57cef38

Browse files
committed
Add more documentation to messages
1 parent d4e0329 commit 57cef38

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

control_msgs/action/ExecuteMotionPrimitiveSequence.action

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# A list of MotionPrimitive messages that are executed in sequence. They don't have to be of the
2+
# same type, as long as the robot supports executing them one after another.
13
MotionPrimitiveSequence trajectory
24
---
35
int32 SUCCESSFUL = 0
@@ -7,4 +9,5 @@ int32 OLD_HEADER_TIMESTAMP = -3
79
int32 error_code
810
string error_string
911
---
10-
uint8 current_primitive_index # How far are we in the actual trajectory?
12+
# Index of the currently executed motion primitive in the sequence.
13+
uint8 current_primitive_index

control_msgs/msg/MotionArgument.msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# Key Value pair to be used in MotionPrimitive messages
2+
13
string argument_name
24
float64 argument_value

control_msgs/msg/MotionPrimitive.msg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,16 @@ int8 type -1 # one of the above
88

99
float64 blend_radius
1010

11+
# MotionArguments are meant to be used as vendor-specific or use-case-specific arguments to
12+
# MotionPrimitive messages. This is to avoid bloating the MotionPrimitive message with all possible
13+
# uses cases but rather add specific data using as a list of key-value pairs, which is what this
14+
# message represents.
1115
MotionArgument[] additional_arguments # (max) velocity, (max) acceleration, efficiency
1216

1317
# Targets should be either specified through joint configurations or Cartesian poses.
1418
# Depending on the motion type and implementation, there might be multiple poses allowed.
1519
# For example, circular motions are often specified as via and target
20+
# Usually one of these is empty, in some edge cases even both can be empty, when all input is given
21+
# in the more flexible MotionArgument[] field.
1622
geometry_msgs/PoseStamped[] poses
1723
float64[] joint_positions

0 commit comments

Comments
 (0)