Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Display settings via API

#1
Hi all, is there a way to set the station camera view via the API?

I.e. I'd like to open an rdk and set a specific zoom/rotation of the station. During the simulation I would like to change the view several times (without manual viewer input) to ensure the best of the robot and machined component.

Any help appreciated.

Kind regards,

Adam
#2
Yes, this is possible. You can get and set the camera pose using ViewPose and setViewPose respectively. This is the pose of the root of the station or position of the robot base with respect to the view pose.

You can also find the source code of the View Manager app here:
https://github.com/RoboDK/Plug-In-Interf...oader/Apps

This View Manager app uses the ViewPose/setViewPose commands to move from one view to another one as shown in this video:
https://www.youtube.com/watch?v=krsVm02NQFY

Albert
#3
Fantastic, thanks Albert. I'll give this a go.
  




Users browsing this thread:
1 Guest(s)