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

points in srv.request.trajectory.points is an array as you correctly note in your question. Thus, you should access its elements in order to access their members (e.g. positions, velocities and accelerations). Instead of srv.request.trajectory.points.positions try srv.request.trajectory.points[i].positions where i is the joint you want to specify.

points in srv.request.trajectory.points is an array as you correctly note in your question. Thus, you should access its elements in order to access their members (e.g. positions, velocities and accelerations). Instead of

srv.request.trajectory.points.positions

try

srv.request.trajectory.points[i].positions

where i is the joint you want to specify.

points in srv.request.trajectory.points is an array as you correctly note in your question. Thus, you should access its elements in order to access their members (e.g. positions, velocities and accelerations). Instead of

srv.request.trajectory.points.positions

try

srv.request.trajectory.points[i].positions

where i is the joint you want to specify.

You might also benefit from this answer.