We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce8199a commit c4d5415Copy full SHA for c4d5415
interbotix_ros_xseries/interbotix_xs_sdk/src/xs_sdk_obj.cpp
@@ -541,6 +541,15 @@ bool InterbotixRobotXS::robot_get_motor_configs(void)
541
542
YAML::Node joint_order = motor_configs["joint_order"];
543
YAML::Node sleep_positions = motor_configs["sleep_positions"];
544
+
545
+ if (joint_order.size() != sleep_positions.size())
546
+ {
547
+ ROS_FATAL(
548
+ "[xs_sdk] Error when parsing Motor Config file: Length of joint_order list (%d) does not match length of sleep_positions list (%d).",
549
+ joint_order.size(), sleep_positions.size());
550
+ return false;
551
+ }
552
553
JointGroup all_joints;
554
all_joints.joint_num = (uint8_t) joint_order.size();
555
all_joints.mode = "position";
0 commit comments