Problem executing many trajectories with PR2

asked 2016-11-14 14:36:52 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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.

edit retag flag offensive close merge delete

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.

chapulina gravatar imagechapulina ( 2016-11-16 10:49:04 -0500 )edit

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

hari1234 gravatar imagehari1234 ( 2016-12-25 10:36:47 -0500 )edit