You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

There are two ways to control CPM vehicles, direct commands and trajectory commands.

Direct Command

See https://git.rwth-aachen.de/CPM/Project/Lab/cpm_base/blob/master/dds_idl/VehicleCommandDirect.idl

The direct command uses dimensionless, uncalibrated inputs and applies them directly to the motor and servo.


motor_throttlesteering_servo
-1.0Maximum reverse accelerationFull right
0.0Brake, stopSteering roughly centered, but may have an offset
+1.0Maximum forward accelerationFull left
struct VehicleCommandDirect 
{
    octet vehicle_id; //@key
    Header header;
    double motor_throttle;  // dimensionless, in [-1, 1]
    double steering_servo;  // dimensionless, in [-1, 1]
};


Trajectory Command

asd

  • No labels