added get protocol version api

This commit is contained in:
Ruixiang Du
2021-07-13 18:03:50 +08:00
parent 8b606b7520
commit f7224bf56f
14 changed files with 96 additions and 55 deletions

View File

@@ -18,7 +18,7 @@
namespace westonrobot {
class ScoutRobot : public RobotInterface, public ScoutInterface {
public:
ScoutRobot(ProtocolType protocol = ProtocolType::AGX_V2);
ScoutRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2);
~ScoutRobot();
void Connect(std::string can_name) override;
@@ -33,6 +33,8 @@ class ScoutRobot : public RobotInterface, public ScoutInterface {
void ResetRobotState() override;
ProtocolVersion GetProtocolVersion() override;
// get robot state
ScoutState GetRobotState() override;