question

Youichi I avatar image
1 Like"
Youichi I asked Youichi I commented

How to use initkinematics in the robot joint control?

I wrote the following code, but it is not reflected in Current position. How should I program it?

treenode trb;

Object orb = model().find("Robot8");

initkinematics(trb, orb, KINEMATIC_MANAGE_ROTATIONS);

initkinematics(trb, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, KINEMATIC_MANAGE_ROTATIONS);

addkinematic(trb, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 1,1,time(),KINEMATIC_TRAVEL);

updatekinematics(trb, orb); deactivatekinematics(trb);

FlexSim 18.1.2
robot arm
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Joerg Vogel avatar image
2 Likes"
Joerg Vogel answered Youichi I commented

The node reference trb must be a real node in the tree. Typically you use a label at the robot for this task.

  1. treenode robot = Model.find(“your own robot”);
  2. robot.labels.assert(“yourKinematicNode”);
  3. treenode trb = robot.labels[“yourKinematicNode”];
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.