ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
![]() | 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.
![]() | 2 | No.2 Revision |
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.
![]() | 3 | No.3 Revision |
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.