Files
ugv_sdk/include/ugv_sdk/details/interface/scout_interface.hpp
2021-07-13 18:03:50 +08:00

44 lines
1.0 KiB
C++

/*
* scout_interface.hpp
*
* Created on: Jul 08, 2021 12:02
* Description: Scout-specific interface
*
* Copyright (c) 2021 Weston Robot Pte. Ltd.
*/
#ifndef SCOUT_INTERFACE_HPP
#define SCOUT_INTERFACE_HPP
#include <string>
#include "ugv_sdk/details/interface/agilex_message.h"
namespace westonrobot {
struct ScoutState {
SystemStateMessage system_state;
MotionStateMessage motion_state;
LightStateMessage light_state;
// actuator state
// - for v2 robots only
ActuatorHSStateMessage actuator_hs_state[4];
ActuatorLSStateMessage actuator_ls_state[4];
// - for v1 robots only
ActuatorStateMessageV1 actuator_state[4];
};
struct ScoutInterface {
virtual ~ScoutInterface() = default;
virtual void SetMotionCommand(double linear_vel, double angular_vel) = 0;
virtual void SetLightCommand(LightMode f_mode, uint8_t f_value,
LightMode r_mode, uint8_t r_value) = 0;
// get robot state
virtual ScoutState GetRobotState() = 0;
};
} // namespace westonrobot
#endif /* SCOUT_INTERFACE_HPP */