updated ci, updated hunter set brake mode impl

This commit is contained in:
Ruixiang Du
2021-07-29 18:25:22 +08:00
parent 51820bbcb4
commit 5c878914fa
8 changed files with 39 additions and 33 deletions

View File

@@ -38,9 +38,14 @@ void HunterRobot::SetMotionCommand(double linear_vel, double angular_vel) {
hunter->SetMotionCommand(linear_vel, angular_vel);
}
void HunterRobot::SetBrakeMode(BrakeMode mode) {
void HunterRobot::ActivateBrake() {
auto hunter = dynamic_cast<HunterInterface*>(robot_);
hunter->SetBrakeMode(mode);
hunter->ActivateBrake();
}
void HunterRobot::ReleaseBrake() {
auto hunter = dynamic_cast<HunterInterface*>(robot_);
hunter->ReleaseBrake();
}
HunterCoreState HunterRobot::GetRobotState() {