ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I believe the issue is that points in your case created as a map, instead of a list. It is a list.

See the documentation for JointTrajectory here:

trajectory_msgs/JointTrajectoryPoint[] points

So in YAML, I would expect this to look something like this:

points : [
  {
     positions : [..],
     velocities : [..],
     accelerations : [..],
     effort : [],
     time_from_start : ...
  },
  {
     positions : [..],
     velocities : [..],
     accelerations : [..],
     effort : [],
     time_from_start : ...
  },
  ...
]

I believe the issue is that points in your case created as a map, instead of a list. It is a list.

See the documentation for JointTrajectory here:

trajectory_msgs/JointTrajectoryPoint[] points

So in YAML, I would expect this to look something like this:

points : [
  {
     positions : [..],
     velocities : [..],
     accelerations : [..],
     effort : [],
[..],
     time_from_start : ...
  },
  {
     positions : [..],
     velocities : [..],
     accelerations : [..],
     effort : [],
[..],
     time_from_start : ...
  },
  ...
]