RoboDK Forum
凸轮a view and tracing of objects in simulation- Printable Version

+- RoboDK Forum (//www.sinclairbody.com/forum)
+-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN)
+ - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK)
+--- Thread: Camera view and tracing of objects in simulation (/Thread-Camera-view-and-tracing-of-objects-in-simulation)



凸轮a view and tracing of objects in simulation-christian.hansen-02-13-2022

Hi RoboDK.

Is it possible to e.g. have an AGV/Cube/whatever running in like the X direction and then record the simulation from the object? I.e. like simular to a "factory tour", i.e. that you see the simulation from the given object, that is transported around the factory? Or like tracing a package on a conveyor belt?

Thanks in advance :)


RE: Camera view and tracing of objects in simulation-Jeremy-02-14-2022

In theory no, but in practice... I might have an idea.
If you attach a camera on top of the AGV, you could record just the camera and not the rest of the screen.

If you open your local library and type "camera" in the search bar you will find an example using a 2D camera. That would be my starting point.

Let me know if it helps.

Jeremy


RE: Camera view and tracing of objects in simulation-Sam-02-14-2022

Yes, this is possible and fairly easy to do!

A camera is always linked to a frame, which can be mounted on dynamic objects.
Then, it's just a matter of recording the camera.

RoboDK has an App called Record that does something similar.
To activate it, enable the AppLoader (Shift+I) and the Record app (Shift+A).
You can reuse the code to fit your needs.You can find more information and examples in our Python documentation:


RE: Camera view and tracing of objects in simulation-Jeremy-02-14-2022

Thanks @Sam.


RE: Camera view and tracing of objects in simulation-christian.hansen-02-18-2022

Cool, thanks a lot guys!