mirror of
https://github.com/westonrobot/ugv_sdk
synced 2023-04-08 06:32:14 +08:00
cleanup: cleaned up a few comments and types
This commit is contained in:
@@ -124,6 +124,7 @@ typedef struct {
|
|||||||
uint8_t driver_state;
|
uint8_t driver_state;
|
||||||
} ActuatorLSStateMessage;
|
} ActuatorLSStateMessage;
|
||||||
|
|
||||||
|
// for ranger
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t motion_mode;
|
uint8_t motion_mode;
|
||||||
uint8_t mode_changing;
|
uint8_t mode_changing;
|
||||||
|
|||||||
@@ -29,9 +29,9 @@ typedef struct {
|
|||||||
} AgxLightOperation;
|
} AgxLightOperation;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
VehicleStateNormal = 0x00,
|
VEHICLE_STATE_NORMAL = 0x00,
|
||||||
VehicleStateEStop = 0x01,
|
VEHICLE_STATE_ESTOP = 0x01,
|
||||||
VehicleStateException = 0x02
|
VEHICLE_STATE_EXCEPTION = 0x02
|
||||||
} AgxVehicleState;
|
} AgxVehicleState;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
|||||||
@@ -4,12 +4,6 @@
|
|||||||
* Created on: Dec 22, 2020 17:14
|
* Created on: Dec 22, 2020 17:14
|
||||||
* Description:
|
* Description:
|
||||||
*
|
*
|
||||||
* Each robot class derived from this base class should provide implementation
|
|
||||||
* for the following two functions:
|
|
||||||
*
|
|
||||||
* - virtual void Connect(std::string dev_name) = 0;
|
|
||||||
* - virtual void ParseCANFrame(can_frame *rx_frame) = 0;
|
|
||||||
*
|
|
||||||
* Copyright (c) 2020 Ruixiang Du (rdu)
|
* Copyright (c) 2020 Ruixiang Du (rdu)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -87,7 +81,7 @@ class AgilexBase : public RobotCommonInterface {
|
|||||||
msg.body.motion_command_msg.steering_angle = steering_angle;
|
msg.body.motion_command_msg.steering_angle = steering_angle;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::cout << "sending motion cmd: " << linear_vel << "," << angular_vel
|
std::cout << "Sending motion cmd: " << linear_vel << ", " << angular_vel
|
||||||
<< ", " << lateral_vel << std::endl;
|
<< ", " << lateral_vel << std::endl;
|
||||||
|
|
||||||
// send to can bus
|
// send to can bus
|
||||||
|
|||||||
Reference in New Issue
Block a user