FollowJointTrajectoryAction feasibility checking
MoveIt seems to do some sanity checking before executing trajectories and I was wondering if using the follow_joint_trajectory
action gets you those same checks. I sent a bad trajectory that didn't start from the current pose today in simulation and expected an error but instead I got a instantaneous jump in the robots simulated state (very bad). I was expecting an error such as this but just got straight up execution.
1) Is this expected behavior?
2) Should I perhaps wrap my trajectory with a MoveGroup::Plan
and then execute via MoveGroup::execute(const Plan &plan)
call? Do I get other checks this way as well like collisions, joint limits, etc.?
Edit: In this particular case I am using a move group on top of industrial_robot_simulator
Just to post a follow-up here... I switched from using control_msgs/FollowJointTrajectory Action (provided by drivers) directly to moveit_msgs/ExecuteTrajectory Action provided by the move group. This gets me checks from both MoveIt and the driver