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

O.k I just put it in 2 different lines and it works nicely.

this->only_joint_->SetForce(0,-2*this->only_joint_->GetAngle(0).GetAsRadian());
 this->only_joint_->SetForce(0,-2*this->only_joint_->GetVelocity(0));