File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
bitbots_motion/bitbots_quintic_walk/src Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -115,8 +115,10 @@ void WalkNode::run() {
115115 // necessary as timer in simulation does not work correctly https://github.com/ros2/rclcpp/issues/465
116116 if (dt != 0.0 ) {
117117 if (robot_state_ == bitbots_msgs::msg::RobotControlState::FALLING ||
118- robot_state_ == bitbots_msgs::msg::RobotControlState::GETTING_UP) {
119- // the robot fell, we have to reset everything and do nothing else
118+ robot_state_ == bitbots_msgs::msg::RobotControlState::GETTING_UP ||
119+ robot_state_ == bitbots_msgs::msg::RobotControlState::PENALTY) {
120+ // The robot fell or the penalty button was pressed.
121+ // We have to reset everything and do nothing else to ensure a stable restart afterwards.
120122 walk_engine_.reset ();
121123 stabilizer_.reset ();
122124 } else {
You can’t perform that action at this time.
0 commit comments