Skip to content

Commit

Permalink
Add joint blacklist property
Browse files Browse the repository at this point in the history
  • Loading branch information
dmronga committed Nov 21, 2023
1 parent 29c42ed commit c0c0cdc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/whole_body_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ controller_interface::CallbackReturn WholeBodyController::on_configure(const rcl

RobotModelConfig robot_model_cfg;
robot_model_cfg.file_or_string = urdf_string;
robot_model_cfg.joint_blacklist = params.robot_model.joint_blacklist;
robot_model_cfg.type = params.robot_model.type;
robot_model_cfg.submechanism_file = params.robot_model.submechanism_file;
robot_model_cfg.floating_base = params.robot_model.floating_base;
Expand Down
8 changes: 8 additions & 0 deletions src/whole_body_controller_parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ whole_body_controller:
default_value: "",
description: "Only if type:=hyrodyn. Absolute path to submechanism file, which the robot's parallel submechanisms. See Hyrodyn docs for more info.",
}
joint_blacklist: {
type: string_array,
default_value: [],
description: "Blacklisted joints will be set to fixed joints in URDF.",
validation: {
unique<>: null,
}
}
floating_base: {
type: bool,
default_value: false,
Expand Down

0 comments on commit c0c0cdc

Please sign in to comment.