robotflow-initiative / rfuniverse

Robot physics simulation and RL platform based on Unity / 基于Unity的机器人物理仿真和RL平台
https://robotflow.ai/
Apache License 2.0
101 stars 12 forks source link

How can I open the camera on continuously? #14

Open xiaolijz opened 6 days ago

xiaolijz commented 6 days ago

Hi, I want to know how to keep the camera continuously active. In a code cycle, camera.GetRGB() function just can get a frame, but the action of robot is continuously, so I can't capture the entire action. How can I solve this problem?

ghzh26252 commented 5 days ago

In your loop, call GetRGB() before each step If you use WaitDo(), you can view the source code of the method and write your own loop

xiaolijz commented 5 days ago

In your loop, call GetRGB() before each step If you use WaitDo(), you can view the source code of the method and write your own loop Thank you for your reply, I have solved this problem. By the way, I want to know is there an operations manual for this simulation environment? For example, how to make a robotic arm draw a circle?

ghzh26252 commented 4 days ago

You can calculate the interpolation yourself to make the robot draw a circle, Refer to our example scripts and API documentation