ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi,

How about creating a plugin, where you can access the joints and apply forces on them? Here is a plugin example.

One possibility for getting the joint and applying a force on it would be something like:

physics::ModelPtr my_model = _parent;

physics::JointPtr my_joint = my_model->GetJoint("name_of_joint");

my_joint->SetForce(0, 3.0);

Cheers, Andrei