![]() |
Smart Minotaur
|
The RobotController calculates the correct velocity for each motor. Mehr ...
#include <RobotController.hpp>
Öffentliche Methoden | |
RobotController (nxt::Motor &p_leftMotor, nxt::Motor &p_rightMotor) | |
const nav_msgs::Odometry & | getOdometry () |
PIDController & | getPIDController () |
void | setVelocity (const geometry_msgs::Twist &p_velocity) |
void | setPose (const geometry_msgs::PoseWithCovariance &p_pose) |
void | step (const int p_samplingIntervalMSec) |
Tells the PIDController to keep the correct velocity. |
The RobotController calculates the correct velocity for each motor.
This class receives linear and angular velocity and calculates the velocity for each motor. A PIDController is used to keep the correct velocity on each motor.
void minotaur::RobotController::step | ( | const int | p_samplingIntervalMSec | ) |
Tells the PIDController to keep the correct velocity.
p_samplingIntervalMSec | duration of one sampling interval in MSec |