Robotics StackExchange | Archived questions

Problem executing many trajectories with PR2

Hello,

I have a set of actions as Robot Trajectories. I execute each trajectory for a PR2 robot in gazebo, but the problem is that sometimes one of the trajectories doesn't finish and the next one starts. I use usleep(2000000) to wait 2 seconds between trajectory, which should be more than enought, do you have any idea about what is happening?

It is something like this:

trajectory open gripper to grasp object close gripper trajectory open gripper close gripper .... and so on, but sometimes one of the trajectories is not finished, I call it with services, so it should wait until the response.

Asked by Durath on 2016-11-14 15:36:52 UTC

Comments

It might help if you add more information about how you are applying these trajectories, I suppose you're using ROS? Sample code / videos also help.

Asked by chapulina on 2016-11-16 11:49:04 UTC

Can u provide us the source code, i am also trying to control robot movements with joint_trajectory but i'm facing some difficulties.

Asked by hari1234 on 2016-12-25 11:36:47 UTC

Answers