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;
|
||||
} ActuatorLSStateMessage;
|
||||
|
||||
// for ranger
|
||||
typedef struct {
|
||||
uint8_t motion_mode;
|
||||
uint8_t mode_changing;
|
||||
|
||||
@@ -29,9 +29,9 @@ typedef struct {
|
||||
} AgxLightOperation;
|
||||
|
||||
typedef enum {
|
||||
VehicleStateNormal = 0x00,
|
||||
VehicleStateEStop = 0x01,
|
||||
VehicleStateException = 0x02
|
||||
VEHICLE_STATE_NORMAL = 0x00,
|
||||
VEHICLE_STATE_ESTOP = 0x01,
|
||||
VEHICLE_STATE_EXCEPTION = 0x02
|
||||
} AgxVehicleState;
|
||||
|
||||
typedef enum {
|
||||
|
||||
@@ -4,12 +4,6 @@
|
||||
* Created on: Dec 22, 2020 17:14
|
||||
* 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)
|
||||
*/
|
||||
|
||||
@@ -87,8 +81,8 @@ class AgilexBase : public RobotCommonInterface {
|
||||
msg.body.motion_command_msg.steering_angle = steering_angle;
|
||||
}
|
||||
|
||||
std::cout << "sending motion cmd: " << linear_vel << "," << angular_vel
|
||||
<< "," << lateral_vel << std::endl;
|
||||
std::cout << "Sending motion cmd: " << linear_vel << ", " << angular_vel
|
||||
<< ", " << lateral_vel << std::endl;
|
||||
|
||||
// send to can bus
|
||||
can_frame frame;
|
||||
|
||||
Reference in New Issue
Block a user