There is an error in the _build_kinematics_with_lock_joints() function when you load a robot with joints that are not fixed and also not in the robot arm.
File "/home/bren/ws_humanoid/build/curobo_core/curobo/src/curobo/cuda_robot_model/cuda_robot_generator.py", line 527, in _build_kinematics_with_lock_joints
if "mimic" in joint_data[k]:
KeyError: 'left_wheel_joint'
I can solve this with this modified code:
for k in lock_joint_names:
if k in joint_data:
mimic_link_names = [[x["parent"], x["child"]] for x in joint_data[k]["mimic"]]
mimic_link_names = [x for xs in mimic_link_names for x in xs]
lock_links += mimic_link_names
This then leads to some other problem that I managed to solve, but as I don't 100% know what this code is doing I haven't created a pull request.
With a print statement this is the joints in the 2 dicts:
There is an error in the _build_kinematics_with_lock_joints() function when you load a robot with joints that are not fixed and also not in the robot arm.
I can solve this with this modified code:
This then leads to some other problem that I managed to solve, but as I don't 100% know what this code is doing I haven't created a pull request.
With a print statement this is the joints in the 2 dicts:
My kr1.xrdf file: