<trajectory_msgs::JointTrajectory> Question
Hello all,
How do I declare positions in a trajectory_msgs::JointTrajectory variable? I am trying to input a IK service reply into a JointTrajectory positions:
trajectory_msgs::JointTrajectory l_traj_goal;
for(unsigned int i=0; i < l_gpik_res.solution.joint_state.name.size(); i ++)
{
l_traj_goal.points.positions[i] = l_gpik_res.solution.joint_state.position[i];
}
but I get a compiling error:
error: ‘trajectory_msgs::JointTrajectory_<std::allocator<void> >::_points_type’ has no member named ‘positions’
Does anyone know what's going on here? I think this is a small coding error but my C++ skills are lacking
Kind Regards, Martin