Request camera image data

Post Reply
18041909r
Posts: 1
Joined: Fri Jan 03, 2020 6:09 am

Request camera image data

Post by 18041909r »

Hi there,

how to retrieve the camera data(RGB, Depth and segmentation) from the random demo example in the examples browers? I want to imit this project
https://www.youtube.com/watch?v=KPFJdC8Tcm0
into any other demo example like the attached image senario.

Taking the "Rope Attach" which is "Simulate a rigid body connected to a rope." for example, there is "resetCamera" function in the class of SoftDemo defination C++ source file. how can i retrive the sythetic camera image data while the whole simulation running?

I find the example "Physics Client (Shared Mem)" in the example browers, and there, i can send the command of "request camera image" to display the retrieved image data in the left side canvas GUI. Then, how can i translate this function calling routating into any other demo example to retrived image data?

i am using the C++ most latet API. currently, i directly call below code in the "void SoftDemo::initPhysics()", but this fucntion seem have confict with the original variable of "m_dynamicsWorld" which lead to code break down.

m_isOptionalServerConnected = m_physicsServer.connectSharedMemory(m_guiHelper);

ANY advise on this? thanks.
Attachments
rope attach.png
rope attach.png (134.12 KiB) Viewed 307 times
Post Reply