Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Automatic setting of the type of approach point
#1
Hello.

To follow up on the thread on curve following projects, another question :
可以设置自动吗ly the first point of the trajectory (approach point as a linear movement and not a joint movement? circuled in red on the picture).
I know I can change it afterwards, but I have a lot of tests to do, and I'd like to avoid changing it manually.



Thanks
#2
There is no way to change it automatically in RoboDK.
The reason is, the first MoveJ is there to ensure you are using the proper robot configuration before you get started.
So you know, MoveJ respect robot configuration, MoveL don't. More on that here:https://www.youtube.com/watch?v=mk1wvc19...3&index=10

What you can do is write a small python script changing the first MoveJ of a program with a MoveL.
Look at this example://www.sinclairbody.com/doc/en/PythonAPI/exam...structions

If you look towards the end of the example, something like this should work, or at least be very close to doing so:
Code:
elif instruction_dict['Type'] == INS_TYPE_MOVE:
print("Move instruction: use setInstruction to modify target")
ins_name, ins_type, move_type, isjointtarget, pose, joints = prog.Instruction(ins_id)
#prog.setInstruction(ins_id, ins_name, ins_type, move_type, isjointtarget, pose, joints)
prog.setInstruction(ins_id, ins_name, ins_type, MOVE_TYPE_LINEAR , isjointtarget, pose, joints)
Find useful information about RoboDK and its features by visiting ourOnline Documentationand by watching tutorials on ourYoutube Channel.


#3
All right, thanks for the clarification and for the suggestion.
The reason I want to use a moveL is that to avoid any issue of calibration between 3D simulation and real cell, I work in a local frame associated to the part, and the initial moveJ does not place the robot above the starting point but a bit far away making it unsafe to use.
#4
mmm, that would mean your virtual cell isn't properly calibrated to match the real world.

Did you take a look at this?
https://www.youtube.com/playlist?list=PL...LBNEmBE57E

Even if you work on a local frame, things should match from the virtual to the real environment. Except if you are drastically moving the local frame once the program is loaded on the controller using a camera or something.

Jeremy
Find useful information about RoboDK and its features by visiting ourOnline Documentationand by watching tutorials on ourYoutube Channel.






Users browsing this thread:
1 Guest(s)