Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting linear speed of the robot using the Python API
#1
Hi there,

I'm using the 3D printing feature of RoboDK.
I have used a Python program to command the extruder (via serial port). Though, to extrude with a proper feed rate, I need to get the current linear speed of the robot at any time and pass it to the extruder controller board.
I have seen there is a method to set the speed but any idea how to get the linear speed?

Thanks,
Poe
#2
Hi Poe,

You can store the linear speed in your post processor. The speed is provided through the setSpeed function of your post processor:
https://robodk.com/doc/en/PythonAPI/post...or-methods

We also have an example in our documentation that shows how you can calculate the average linear speed of the robot when you take accelerations into account:
https://robodk.com/doc/en/Robot-Machinin...rint3Dpost

In this example, the variable speed_mms is the average speed between two points assuming the robot needs to accelerate/decelerate. We use this average speed to update the extruder signal.

Albert
  




Users browsing this thread:
1 Guest(s)