leggedrobotics / raisimLib

RAISIM, A PHYSICS ENGINE FOR ROBOTICS AND AI RESEARCH
http://www.raisim.com
327 stars 50 forks source link

can you give an example like apply external force on the anymal #17

Closed yonchien closed 5 years ago

yonchien commented 5 years ago

can you give an example like apply external force on the anymal ,and show it in the GUI.
the force is continuous,thanks

jhwangbo commented 5 years ago

Sure. I'll push an example displaying a visual object on raisimOgre. An external force is too trivial. anymal_->setExternalForce(0, {0., 0., 1.0}); This applies force on the first link (0th) of the body, which is the base in the ANYmal model. The API to add a visual object will change in the future. My colleague is working on cleaning it up

jhwangbo commented 5 years ago

the example is pushed. check the visualObject example