mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
43 lines
928 B
C++
43 lines
928 B
C++
/*
|
|
* bunker_robot.hpp
|
|
*
|
|
* Created on: Jul 14, 2021 23:08
|
|
* Description:
|
|
*
|
|
* Copyright (c) 2021 Ruixiang Du (rdu)
|
|
*/
|
|
|
|
#ifndef BUNKER_ROBOT_HPP
|
|
#define BUNKER_ROBOT_HPP
|
|
|
|
#include <memory>
|
|
|
|
#include "ugv_sdk/details/interface/robot_common_interface.hpp"
|
|
#include "ugv_sdk/details/interface/bunker_interface.hpp"
|
|
|
|
namespace westonrobot {
|
|
class BunkerRobot : public RobotCommonInterface, public BunkerInterface {
|
|
public:
|
|
BunkerRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2);
|
|
~BunkerRobot();
|
|
|
|
void Connect(std::string can_name) override;
|
|
|
|
void EnableCommandedMode() override;
|
|
|
|
void SetMotionCommand(double linear_vel, double angular_vel) override;
|
|
|
|
void ResetRobotState() override;
|
|
|
|
ProtocolVersion GetProtocolVersion() override;
|
|
|
|
// get robot state
|
|
BunkerCoreState GetRobotState() override;
|
|
|
|
private:
|
|
RobotCommonInterface* robot_;
|
|
};
|
|
} // namespace westonrobot
|
|
|
|
#endif /* BUNKER_ROBOT_HPP */
|