Closed itaouil closed 1 year ago
DepthSensor::getDepthArray
and RGBSensor::getImageBuffer
are the functions that you are looking for.
Thanks for the quick response.
One last question....
Is there also a way to visualize the RGB and depth images or maybe I should do something extra to have them visible on raisimUnreal?
Because as you can see from the picture below the windows are completely black
how about the raisim example sensors
? Do you also see black images only?
In the example I can see the sensory output.
I guess I am doing something wrong on my side on the URDF.
If you click the checkbox, it should show the frame. From your picture, I don't see any sensor frame.
Solved.
I had to pay attention to which version of Python I was compiling with, and also I did not realize I had to call these two functions inside the code:
auto depthSensor = robot->getSensor<raisim::DepthCamera>("depth_camera_front_camera_parent:depth");
depthSensor->setMeasurementSource(raisim::Sensor::MeasurementSource::VISUALIZER);
auto rgbCamera = robot->getSensor<raisim::RGBCamera>("depth_camera_front_camera_parent:color");
rgbCamera->setMeasurementSource(raisim::Sensor::MeasurementSource::VISUALIZER);
Thanks.
Hi,
I read the small excerpt on the Raisim documentation about adding sensors to the URDF file, and I also saw that you added the sensor implementations in raisimUnreal #329.
My question is how can I access the RGB and depth data coming from the sensor?
Thanks, Ilyass