mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
renamed robot interface to robot common interface
This commit is contained in:
@@ -34,9 +34,9 @@ struct ActuatorStateMsgGroup {
|
||||
|
||||
struct CommonSensorStateMsgGroup {};
|
||||
|
||||
class RobotInterface {
|
||||
class RobotCommonInterface {
|
||||
public:
|
||||
~RobotInterface() = default;
|
||||
~RobotCommonInterface() = default;
|
||||
|
||||
// functions to be implemented by class AgilexBase
|
||||
virtual void EnableCommandedMode() = 0;
|
||||
@@ -24,11 +24,11 @@
|
||||
|
||||
#include "ugv_sdk/details/stopwatch.hpp"
|
||||
#include "ugv_sdk/details/async_port/async_can.hpp"
|
||||
#include "ugv_sdk/details/interface/robot_interface.hpp"
|
||||
#include "ugv_sdk/details/interface/robot_common_interface.hpp"
|
||||
|
||||
namespace westonrobot {
|
||||
template <typename ParserType>
|
||||
class AgilexBase : public RobotInterface {
|
||||
class AgilexBase : public RobotCommonInterface {
|
||||
public:
|
||||
AgilexBase() = default;
|
||||
virtual ~AgilexBase() { DisconnectPort(); }
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "ugv_sdk/details/interface/robot_interface.hpp"
|
||||
#include "ugv_sdk/details/interface/robot_common_interface.hpp"
|
||||
#include "ugv_sdk/details/interface/bunker_interface.hpp"
|
||||
|
||||
namespace westonrobot {
|
||||
class BunkerRobot : public RobotInterface, public BunkerInterface {
|
||||
class BunkerRobot : public RobotCommonInterface, public BunkerInterface {
|
||||
public:
|
||||
BunkerRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2);
|
||||
~BunkerRobot();
|
||||
@@ -35,7 +35,7 @@ class BunkerRobot : public RobotInterface, public BunkerInterface {
|
||||
BunkerCoreState GetRobotState() override;
|
||||
|
||||
private:
|
||||
RobotInterface* robot_;
|
||||
RobotCommonInterface* robot_;
|
||||
};
|
||||
} // namespace westonrobot
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "ugv_sdk/details/interface/robot_interface.hpp"
|
||||
#include "ugv_sdk/details/interface/robot_common_interface.hpp"
|
||||
#include "ugv_sdk/details/interface/hunter_interface.hpp"
|
||||
|
||||
namespace westonrobot {
|
||||
class HunterRobot : public RobotInterface, public HunterInterface {
|
||||
class HunterRobot : public RobotCommonInterface, public HunterInterface {
|
||||
public:
|
||||
HunterRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2);
|
||||
~HunterRobot();
|
||||
@@ -36,7 +36,7 @@ class HunterRobot : public RobotInterface, public HunterInterface {
|
||||
HunterActuatorState GetActuatorState() override;
|
||||
|
||||
private:
|
||||
RobotInterface* robot_;
|
||||
RobotCommonInterface* robot_;
|
||||
};
|
||||
} // namespace westonrobot
|
||||
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "ugv_sdk/details/interface/robot_interface.hpp"
|
||||
#include "ugv_sdk/details/interface/robot_common_interface.hpp"
|
||||
#include "ugv_sdk/details/interface/scout_interface.hpp"
|
||||
|
||||
namespace westonrobot {
|
||||
class ScoutRobot : public RobotInterface, public ScoutInterface {
|
||||
class ScoutRobot : public RobotCommonInterface, public ScoutInterface {
|
||||
public:
|
||||
ScoutRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2,
|
||||
bool is_mini_model = false);
|
||||
@@ -41,7 +41,7 @@ class ScoutRobot : public RobotInterface, public ScoutInterface {
|
||||
ScoutActuatorState GetActuatorState() override;
|
||||
|
||||
private:
|
||||
RobotInterface* robot_;
|
||||
RobotCommonInterface* robot_;
|
||||
};
|
||||
} // namespace westonrobot
|
||||
|
||||
|
||||
Reference in New Issue
Block a user