Using pre created chains - Phylliade/ikpy GitHub Wiki

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: