public class ControlHardware extends Object
| Constructor and Description |
|---|
ControlHardware(UgvExecution execution)
Creates a new instance of ControlHardware
|
| Modifier and Type | Method and Description |
|---|---|
void |
resetPosition()
Resets the robot's self-maintained position to match the state vector
|
void |
setHeadingCmd(double newHdg)
Sets a new commanded heading
|
void |
setSpeedCmd(double newSpd)
Sets a new commanded speed
|
void |
setSpeedCmd(double newLeftSpd,
double newRightSpd)
Sets a new commanded speed for individual wheels
NOTE: DISABLES HEADING AND SPEED CONTROL
|
void |
setTrack(int whichTrack,
double setting)
Sets the ugv track speed
NOTE: values less than 0.001 are assumed to be zero to prevent the scientific
notation of extremely small values from invalidating the AVCL output file
|
void |
shutdown()
Shuts down the aria processes associated with the AriaInterface object
|
void |
updateState(UgvState state)
Updates the execution level state vector using the robot's internally maintained state
|
public ControlHardware(UgvExecution execution)
execution - instance of TrackedUgvExecutionpublic void setSpeedCmd(double newSpd)
newSpd - new commanded speed in meters per secondpublic void setSpeedCmd(double newLeftSpd,
double newRightSpd)
newLeftSpd - new commanded speed in meters per secondnewRightSpd - public void setHeadingCmd(double newHdg)
newHdg - new commanded heading (degrees) (0 North, 90 East)public void resetPosition()
public void updateState(UgvState state)
state - public void shutdown()
public void setTrack(int whichTrack,
double setting)
whichTrack - identifies which track (left or right is being ordered)setting - ordered meters per second speed of the track