Programming with inverse kinematics

Typically: "How do I... ", "How can I... " questions
Post Reply
jangjangjang
Posts: 1
Joined: 26 Mar 2020, 22:16

Programming with inverse kinematics

Post by jangjangjang »

I have set up a robot in CoppeliaSim with inverse kinematics. I would like to use the inverse kinematics to write a program that I can export to Arduino.

More specifically, I would like to use mouse translation to move a part of the robot and then have CoppeliaSim record that movement as a command in Lua. Then I can use this movement multiple times, adjust in various ways and finally export to Arduino.

I understand how to record the movements with the graph function, but I can only export the graph as CSV file and I don't know how to incorporate this data into a Lua program.

coppelia
Site Admin
Posts: 10366
Joined: 14 Dec 2012, 00:25

Re: Programming with inverse kinematics

Post by coppelia »

If I understand you correctly, your question is about exporting data to an external application, and not as your title states about inverse kinematics?

You can export any type of data very easily. You can simply use a child script in which you can collect the data you wish to export (e.g. sim.getObjectPosition), and at the end of a simulation simply write a file with your data.

Cheers

Post Reply