ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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));