07-13-2021, 10:17 AM
Base Reference in the BuildMechanism function
The parameter 'Base' is the base reference frame. The example right below the definition, explains it.
new_robot = RDK.BuildMechanism(MAKE_ROBOT_6DOF, list_objects, parameters, joints_build, joints_home, joints_senses, lower_limits, upper_limits, base_pose, tool_pose, robot_name)
Let me know if you have further questions.
07-13-2021, 03:03 PM
Thanks for your answer, I thought the parameter 'Base' was the 'Base shift' in the UI of Build Mechanism. But if it's actually the Base Reference, which one is the parameter of 'Base shift' in the BuildMechanism() function?
07-13-2021, 09:06 PM
You are correct, its indeed the base shift. We will change our documentation to avoid confusion.
My guess is that the object frame of the base object is taken as the Base Reference. I will clarify this and get back to you.
07-14-2021, 12:36 PM
It is not possible to specify the base frame of your 3D models using the API the same way you do with the UI. However, you can move the origin of your objects to your reference before calling BuildMechanism using the function setParentStatic.
|Users browsing this thread:|
Copyright © 2021 RoboDK Inc.
Powered by MyBB