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

Synchronising equipment with Robot simulation

#1
Hi,
I need to synchronise an equipment  (eg a multi axis machine)  imported in RoboDK with the robot.

I have a file describing machine axis positions= f(t).

I need to know the Robot Simulation time step in order to set the machine in the right position .

How can I retrieve the robot simulation time  step ?

Can I use the plugin Render event in order to update the machine positions ?
Regards,
Stéph
#2
Hi Stéph,

You can retrieve the simulation speed and time using the SimulationSpeed and SimulationTime call:
Code:
RDK = Robolink()
simtime_speed = RDK.SimulationSpeed()
simtime  = RDK.SimulationTime()

The simulation speed is a ratio that represents how much faster the simulation is compared to the real time. More information here:
https://robodk.com/doc/en/PythonAPI/robo...ationSpeed

It is also possible to retrieve the simulation time using SimulationTime:
https://robodk.com/doc/en/PythonAPI/robo...lationTime
(this function has been added today for Python, available on GitHub)

Albert
  




Users browsing this thread:
1 Guest(s)