raisimTech / raisimLib

Visit www.raisim.com
http://www.raisim.com
Other
338 stars 91 forks source link

Camera Api #533

Closed yanghengyii closed 7 months ago

yanghengyii commented 8 months ago

Raisim is an excellent simulator for DL. Now I want to add a camera to simulate the vision input of qual robot. Is it possible to add a camera in RaisimUnity or RaisimUnreal. I didn't find its api in doc.

jhwangbo commented 8 months ago

did you check sensors.cpp? The API is in the server class.

yanghengyii commented 7 months ago

Thank you for your answer! I have seen the file. I mean that I tried to get the image buffer from camera but always got a empty vector. I checked the function getImageBuffer() and the funtion is commented with "It is updated only if the measurement source is the visualizer and raisimUnreal is used". Does it means the buffer can only be obtained in Unreal and Unity is not supported?

yanghengyii commented 7 months ago

So stupid I am! I have tested in Unreal and get the image sucessfully!