cleanup: cleaned up a few comments and types

This commit is contained in:
Ruixiang Du
2021-10-05 13:35:07 +08:00
parent 636ea8fd15
commit e68ecdf5f1
3 changed files with 6 additions and 11 deletions

View File

@@ -124,6 +124,7 @@ typedef struct {
uint8_t driver_state;
} ActuatorLSStateMessage;
// for ranger
typedef struct {
uint8_t motion_mode;
uint8_t mode_changing;

View File

@@ -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 {

View File

@@ -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;