Skip to content

Using pre created chains

Pierre Manceron edited this page May 2, 2020 · 1 revision

Using pre-created chains

Thanks to the ikpy.chain.Chain.from_json_file, you can easily import a pre-created chain, instead of creating it by hand.

For example, with the following:

baxter_left_arm_chain = Chain.from_json_file("../resources/baxter/baxter_left_arm.json")
baxter_right_arm_chain = Chain.from_json_file("../resources/baxter/baxter_right_arm.json")
baxter_pedestal_chain = Chain.from_json_file("../resources/baxter/baxter_pedestal.json")
baxter_head_chain = Chain.from_json_file("../resources/baxter/baxter_head.json")

You will get:

Clone this wiki locally