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 {};
|
struct CommonSensorStateMsgGroup {};
|
||||||
|
|
||||||
class RobotInterface {
|
class RobotCommonInterface {
|
||||||
public:
|
public:
|
||||||
~RobotInterface() = default;
|
~RobotCommonInterface() = default;
|
||||||
|
|
||||||
// functions to be implemented by class AgilexBase
|
// functions to be implemented by class AgilexBase
|
||||||
virtual void EnableCommandedMode() = 0;
|
virtual void EnableCommandedMode() = 0;
|
||||||
@@ -24,11 +24,11 @@
|
|||||||
|
|
||||||
#include "ugv_sdk/details/stopwatch.hpp"
|
#include "ugv_sdk/details/stopwatch.hpp"
|
||||||
#include "ugv_sdk/details/async_port/async_can.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 {
|
namespace westonrobot {
|
||||||
template <typename ParserType>
|
template <typename ParserType>
|
||||||
class AgilexBase : public RobotInterface {
|
class AgilexBase : public RobotCommonInterface {
|
||||||
public:
|
public:
|
||||||
AgilexBase() = default;
|
AgilexBase() = default;
|
||||||
virtual ~AgilexBase() { DisconnectPort(); }
|
virtual ~AgilexBase() { DisconnectPort(); }
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
|
|
||||||
#include <memory>
|
#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"
|
#include "ugv_sdk/details/interface/bunker_interface.hpp"
|
||||||
|
|
||||||
namespace westonrobot {
|
namespace westonrobot {
|
||||||
class BunkerRobot : public RobotInterface, public BunkerInterface {
|
class BunkerRobot : public RobotCommonInterface, public BunkerInterface {
|
||||||
public:
|
public:
|
||||||
BunkerRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2);
|
BunkerRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2);
|
||||||
~BunkerRobot();
|
~BunkerRobot();
|
||||||
@@ -35,7 +35,7 @@ class BunkerRobot : public RobotInterface, public BunkerInterface {
|
|||||||
BunkerCoreState GetRobotState() override;
|
BunkerCoreState GetRobotState() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RobotInterface* robot_;
|
RobotCommonInterface* robot_;
|
||||||
};
|
};
|
||||||
} // namespace westonrobot
|
} // namespace westonrobot
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
|
|
||||||
#include <memory>
|
#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"
|
#include "ugv_sdk/details/interface/hunter_interface.hpp"
|
||||||
|
|
||||||
namespace westonrobot {
|
namespace westonrobot {
|
||||||
class HunterRobot : public RobotInterface, public HunterInterface {
|
class HunterRobot : public RobotCommonInterface, public HunterInterface {
|
||||||
public:
|
public:
|
||||||
HunterRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2);
|
HunterRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2);
|
||||||
~HunterRobot();
|
~HunterRobot();
|
||||||
@@ -36,7 +36,7 @@ class HunterRobot : public RobotInterface, public HunterInterface {
|
|||||||
HunterActuatorState GetActuatorState() override;
|
HunterActuatorState GetActuatorState() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RobotInterface* robot_;
|
RobotCommonInterface* robot_;
|
||||||
};
|
};
|
||||||
} // namespace westonrobot
|
} // namespace westonrobot
|
||||||
|
|
||||||
|
|||||||
@@ -12,11 +12,11 @@
|
|||||||
|
|
||||||
#include <memory>
|
#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"
|
#include "ugv_sdk/details/interface/scout_interface.hpp"
|
||||||
|
|
||||||
namespace westonrobot {
|
namespace westonrobot {
|
||||||
class ScoutRobot : public RobotInterface, public ScoutInterface {
|
class ScoutRobot : public RobotCommonInterface, public ScoutInterface {
|
||||||
public:
|
public:
|
||||||
ScoutRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2,
|
ScoutRobot(ProtocolVersion protocol = ProtocolVersion::AGX_V2,
|
||||||
bool is_mini_model = false);
|
bool is_mini_model = false);
|
||||||
@@ -41,7 +41,7 @@ class ScoutRobot : public RobotInterface, public ScoutInterface {
|
|||||||
ScoutActuatorState GetActuatorState() override;
|
ScoutActuatorState GetActuatorState() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
RobotInterface* robot_;
|
RobotCommonInterface* robot_;
|
||||||
};
|
};
|
||||||
} // namespace westonrobot
|
} // namespace westonrobot
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user