#include <RobotThread.h>
Public Member Functions | |
void | callback (nav_msgs::Odometry msg) |
double | getAPos () |
double | getASpeed () |
double | getXPos () |
double | getXSpeed () |
double | getYPos () |
void | goToXYZ (geometry_msgs::Point goTo) |
bool | init () |
RobotThread (int argc, char **pArgv) | |
void | run () |
void | scanCallBack (sensor_msgs::LaserScan scan) |
void | setCommand (QString cmd) |
void | setPose (QList< double > to_set) |
void | SetSpeed (double speed, double angle) |
virtual | ~RobotThread () |
Private Attributes | |
ros::Publisher | cmd_publisher |
QString | command |
double | m_angle |
double | m_aPos |
int | m_Init_argc |
double | m_maxRange |
double | m_minRange |
char ** | m_pInit_argv |
double | m_speed |
double | m_xPos |
double | m_yPos |
ros::Subscriber | pose_listener |
QList< double > | ranges |
ros::Subscriber | scan_listener |
ros::Publisher | sim_velocity |
Definition at line 23 of file RobotThread.h.
server::RobotThread::RobotThread | ( | int | argc, |
char ** | pArgv | ||
) |
Definition at line 4 of file RobotThread.cpp.
server::RobotThread::~RobotThread | ( | ) | [virtual] |
Definition at line 9 of file RobotThread.cpp.
void server::RobotThread::callback | ( | nav_msgs::Odometry | msg | ) |
Definition at line 39 of file RobotThread.cpp.
double server::RobotThread::getAPos | ( | ) |
Definition at line 136 of file RobotThread.cpp.
double server::RobotThread::getASpeed | ( | ) |
Definition at line 132 of file RobotThread.cpp.
double server::RobotThread::getXPos | ( | ) |
Definition at line 134 of file RobotThread.cpp.
double server::RobotThread::getXSpeed | ( | ) |
Definition at line 131 of file RobotThread.cpp.
double server::RobotThread::getYPos | ( | ) |
Definition at line 135 of file RobotThread.cpp.
void server::RobotThread::goToXYZ | ( | geometry_msgs::Point | goTo | ) |
Definition at line 57 of file RobotThread.cpp.
bool server::RobotThread::init | ( | ) |
Definition at line 20 of file RobotThread.cpp.
void server::RobotThread::run | ( | ) |
Definition at line 86 of file RobotThread.cpp.
void server::RobotThread::scanCallBack | ( | sensor_msgs::LaserScan | scan | ) |
Definition at line 48 of file RobotThread.cpp.
void server::RobotThread::setCommand | ( | QString | cmd | ) |
Definition at line 117 of file RobotThread.cpp.
void server::RobotThread::setPose | ( | QList< double > | to_set | ) |
Definition at line 122 of file RobotThread.cpp.
void server::RobotThread::SetSpeed | ( | double | speed, |
double | angle | ||
) |
Definition at line 109 of file RobotThread.cpp.
Definition at line 64 of file RobotThread.h.
QString server::RobotThread::command [private] |
Definition at line 47 of file RobotThread.h.
double server::RobotThread::m_angle [private] |
Definition at line 53 of file RobotThread.h.
double server::RobotThread::m_aPos [private] |
Definition at line 57 of file RobotThread.h.
int server::RobotThread::m_Init_argc [private] |
Definition at line 49 of file RobotThread.h.
double server::RobotThread::m_maxRange [private] |
Definition at line 59 of file RobotThread.h.
double server::RobotThread::m_minRange [private] |
Definition at line 60 of file RobotThread.h.
char** server::RobotThread::m_pInit_argv [private] |
Definition at line 50 of file RobotThread.h.
double server::RobotThread::m_speed [private] |
Definition at line 52 of file RobotThread.h.
double server::RobotThread::m_xPos [private] |
Definition at line 55 of file RobotThread.h.
double server::RobotThread::m_yPos [private] |
Definition at line 56 of file RobotThread.h.
Definition at line 67 of file RobotThread.h.
QList<double> server::RobotThread::ranges [private] |
Definition at line 62 of file RobotThread.h.
Definition at line 68 of file RobotThread.h.
Definition at line 65 of file RobotThread.h.