Skip to content

Commit 0769964

Browse files
committed
joint_ctrl_mode: dont throw on non existing joint
1 parent 2559759 commit 0769964

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ros/RosExecutor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ void RosExecutor::init_customize_command()
185185

186186
if(!_robot->hasJoint(j))
187187
{
188-
throw std::runtime_error("Joint ctrl mode map contains non existing joint '" + j + "'");
188+
RCLCPP_WARN(_node->get_logger(), "Joint '%s' in joint_ctrl_mode does not exist, skipping", j.c_str());
189+
continue;
189190
}
190191

191192
XBot::ControlMode::Type mode = static_cast<XBot::ControlMode::Type>(mode_int);

0 commit comments

Comments
 (0)