PR2 / pr2_controllers

The controllers that run in realtime on the PR2 and supporting packages.
46 stars 34 forks source link

JointTrajectoryActionController: How the target is applied? #372

Closed anefg closed 10 years ago

anefg commented 10 years ago

I have been trying to understand how the JointTrajectoryController works. Analysing the code I could see that the joint states are published on update method. In the same method, some code lines before, the trajectory is executed applying the effort

'joints_[i]->commandedeffort = effort;'

In simulation is there any node which manages this new target and sends it to gazebo?

Thanks in advance,

Ane

trainman419 commented 10 years ago

I suggest you take a look at the pr2_controller Tutorials and the PR2 JointTrajectoryAction tutorial in particular.