leggedrobotics / raisimLib

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

How can I get terrain information around the robot. #57

Closed ZQX323 closed 4 years ago

ZQX323 commented 4 years ago

Hi,

I want to capture the terrain information around the robot. For example, a 2m*2m square indicates the height of the surrounding environment. Is there any suggestion to get it? Thank you!

Best.

jhwangbo commented 4 years ago

Did you use the HeightMap class? then just getHeight method. Otherwise, you have to use rayTest in the world class which will be much slower

jhwangbo commented 4 years ago

closing this issue until I get more questions