RGB and Depth sensors #688
Replies: 11 comments 25 replies
-
Thanks Vikash. I'd like to add a few points.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Coincidentally, have also recently found myself wanting an out-of-the-box depth / point cloud sensor (and have been playing around trying to get high-accuracy depth scans from OpenGL rendering, with pretty poor results). So a rangefinder array would be quite welcome, as building a full depth image from rangefinder sensors seems cumbersome. |
Beta Was this translation helpful? Give feedback.
-
How would you parametrize a rangefinder array? What do you think of:
Here One could also consider a boolean flag WDYT? |
Beta Was this translation helpful? Give feedback.
-
Hi, I have been using MuJoCo for simulating cameras and point clouds for several months. The results have been good for my purposes. @beneisner @vikashplus If you are interested I can put together a short example. As mentioned before. Depth point clouds can be extracted by from OpenGl's Z-buffer (depth image) that is produced through rasterization. I have had good results for scenes between 0.05 and 10 meters and get a nice point cloud once everything is scaled by the inverse of the camera intrinsics. When you combine this with MuJoCo's segmented rendering you get a labeled point cloud. OpenGL uses logarithmic depth transform which introduces limitations on depth accuracy. I am not sure if it is possible to change OpenGL to use a linear depth buffer with perspective projection. This stackoverflow suggests it is possible with orthographic projection. Will an array of rangefinders be fast compared to GPU based depth rendering? GPU's are purpose built for rasterization and one of the main outputs is a depth array. |
Beta Was this translation helpful? Give feedback.
-
Reviving this thread to see if there is any plan to have a built in depth sensor in mujoco. I've looked at the various examples presented here and I'm happy to adapt one to my needs, but if there's an exist branch that I could check out, I'm happy to give that a try as well. |
Beta Was this translation helpful? Give feedback.
-
Hi, is there any update on the topic? Any official solution? |
Beta Was this translation helpful? Give feedback.
-
it's now very easy to create a rangefinder array using replicate |
Beta Was this translation helpful? Give feedback.
-
Here you go <mujoco model="rangefinder array">
<worldbody>
<geom name="floor" type="plane" size="2 2 .01"/>
<geom size=".4"/>
<light pos="0 0 3"/>
<body name="1" pos="0 0 1">
<joint axis="0 1 0"/>
<geom type="box" size=".05 .05 .05" pos=".1 0 0"/>
<replicate count="4" euler="0 4 0">
<replicate count="4" euler="0 0 -4">
<site name="rf" pos=".16 0 0" zaxis="1 0 0"/>
</replicate>
</replicate>
</body>
</worldbody>
<sensor>
<rangefinder site="rf"/>
</sensor>
</mujoco> |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Opening a thread to discuss if it's worth adding RGB, Depth, point cloud sensors as MuJoCo sensors.
Con
Pro
Beta Was this translation helpful? Give feedback.
All reactions