Skip to content

Faulty Initialization of IKSolver in WholeBodyIK? #730

@ARoefer

Description

@ARoefer

Hello!

I am trying to get the WholeBodyIK to work for the PandaOmron and was trying to set it to relative action so that I can test that the robot rests when given a zero vector. Since the result was not as expected, it stepped through the code and noticed that IKSolver.input_action_repr remained absolute even when I set relative in the config. I think I have tracked the error to this line:

input_type=self.composite_controller_specific_config.get("ik_input_type", "axis_angle"),

As I understand it, the argument should actually be input_action_action_repr and the default absolute.
Could you confirm if I understood that correctly?

Cheers!

Attaching my config for completeness:

{
    "type": "WHOLE_BODY_IK",
    "composite_controller_specific_configs": {
        "ref_name": ["gripper0_right_grip_site"],
        "interpolation": null,
        "actuation_part_names": ["torso", "base", "right"],
        "max_dq": 4,
        "nullspace_joint_weights": {
            "robot0_torso_lift_joint": 100.0
        },
        "ik_pseudo_inverse_damping": 5e-2,
        "ik_integration_dt": 1e-1,
        "ik_max_dq": 4.0,
        "ik_max_dq_torso": 0.2,
        "ik_input_rotation_repr": "quat_wxyz",
        "ik_input_type": "relative",
        "verbose": false
    },
    "body_parts": {
        "right": {
            "type": "JOINT_POSITION",
            "input_max": 1,
            "input_min": -1,
            "input_type": "absolute",
            "output_max": 10,
            "output_min":  -10,
            "kp": 150,
            "kp_limits": [0, 1000],
            "damping_ratio_limits": [0, 10],
            "interpolation": null,
            "ramp_ratio": 0.2,
            "gripper": {
                "type": "GRIP"
            }
        },
        "torso": {
            "type": "JOINT_POSITION",
            "interpolation": "null",
            "kp": 2000
        },
        "base": {
            "type": "JOINT_VELOCITY",
            "interpolation": "null"
        }
    }
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions