Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Better joint control
#4
(07-22-2022, 08:37 AM)Albert Wrote:You can set the blending to a value greater than 0, for example, 10 mm. For example, robot.setRounding(10).

This should work well if you are generating your robot program offline. On the other hand, if you are moving your robot directly from your code or RoboDK (using the driver), the robot may synchronize at each line of code.

Hi Albert, I tested robot.setRounding(10) yesterday, and it didn't work, the robot continued to work the same way, what am I doing wrong? my program like this:


Code:
from robodk.robomath import *
from robodk.robolink import *
RDK = Robolink()
robot = RDK.Item('', ITEM_TYPE_ROBOT)
RUN_ON_ROBOT = True

if RDK.RunMode() != RUNMODE_SIMULATE:
RUN_ON_ROBOT = False


if RUN_ON_ROBOT:

success = robot.Connect()
status, status_msg = robot.ConnectedState()
if status != ROBOTCOM_READY:
# Stop if the connection did not succeed
print(status_msg)
raise Exception("Failed to connect: " + status_msg)
RDK.setRunMode(RUNMODE_RUN_ROBOT)



robot.setRounding(10)
robot.setSpeed(200)

joints = [0,0,0,0,0,0]
robot.MoveJ(joints)
x = 0
while x <100:
joints = [0,0,x,0,0,0]
robot.MoveJ(joints)
x=x+1


Messages In This Thread
Better joint control - byJoaoEm- 07-22-2022, 03:44 AM
RE: Better joint control - byAlbert- 07-22-2022, 08:37 AM
RE: Better joint control - byJoaoEm- 07-25-2022, 02:34 AM
RE: Better joint control - byJoaoEm- 07-26-2022, 06:52 PM
RE: Better joint control - byAlbert- 07-28-2022, 03:09 PM



Users browsing this thread:
1 Guest(s)