#include <rosinljubljana.h>

Public Member Functions | |
| void | EKFOdometryCallback (const nav_msgs::Odometry &msg) |
| void | odometryCallback (const nav_msgs::Odometry &msg) |
| Robot () | |
| void | setFrames () |
| void | setName (std::string, ros::NodeHandle nh) |
| void | setPositionOrientation (tf::Vector3, tf::Quaternion) |
| void | transmitFrames () |
| void | transmitLaserScan (Robot[], int list_length, Field *field) |
| void | transmitOdom () |
| void | transmitPoseFromAlvarPoseMsg () |
| void | updatePositionOrientation () |
Public Attributes | |
| float | angularz |
| tf::TransformBroadcaster | br |
| Broadcaster and listener of robot transforms. More... | |
| float | fi |
| std::stringstream | frameAr_pose_markerName |
| Name of alvar marker frame. More... | |
| std::stringstream | frameBase_linkName |
| Name of base_link frame. More... | |
| std::stringstream | frameMapName |
| Name of map frame. More... | |
| std::stringstream | frameOdomName |
| Name of odom frame. More... | |
| ros::Publisher | LaserScan_publisher |
| Publishers of LaserScan msg and Odometry msg. More... | |
| std::stringstream | LaserScan_publisher_name |
| Name of LaserScan publisher. More... | |
| tf::TransformListener | listener |
| std::string | name |
| Number of robot. More... | |
| nav_msgs::Odometry | odom |
| Variable for storing Odometry msg. More... | |
| ros::Publisher | odom_publisher |
| std::stringstream | odom_publisher_name |
| Name of odometry publisher. More... | |
| geometry_msgs::PoseWithCovarianceStamped | pose_alvar |
| Vaifable for storing pose from alvar. More... | |
| ros::Publisher | pose_alvar_publisher |
| std::stringstream | pose_alvar_publisher_name |
| std::stringstream | robot_ekf_odom_subscriber_name |
| ros::Subscriber | sub_ekf_odom |
| subscriber for robot odometry from ekf_odom More... | |
| ros::Time | time |
| Variables for determening time difference. More... | |
| ros::Time | time_2 |
| tf::Transform | transformBase_Link |
| tf::Transform | transformMap |
| Variables for transforms of frames. More... | |
| tf::Transform | transformOdom |
| float | vx |
| variables for storing position, veloctiy parameters More... | |
| float | vy |
| float | x |
| float | y |
Robot class for creating robot
Robot is an instance of robot in environment.
Definition at line 212 of file rosinljubljana.h.
| Robot::Robot | ( | ) |
Constructor for robot
Definition at line 184 of file rosinljubljana_objects.cpp.
| void Robot::EKFOdometryCallback | ( | const nav_msgs::Odometry & | msg | ) |
Callback method for subscribing to EKF odometry.
| &msg | pointer to odometry msg |
Definition at line 345 of file rosinljubljana_objects.cpp.
| void Robot::odometryCallback | ( | const nav_msgs::Odometry & | msg | ) |
Callback method for subscribing to robot odometry.
| &msg | pointer to odometry msg |
Definition at line 372 of file rosinljubljana_objects.cpp.
| void Robot::setFrames | ( | ) |
Sets frames of robot.
Definition at line 219 of file rosinljubljana_objects.cpp.
| void Robot::setName | ( | std::string | robotName, |
| ros::NodeHandle | nh | ||
| ) |
Sets robot name. Sets necesery publishers.
| robotName | Robot number (must be same as alvar tag number) |
| nh | ros nodehandle |
Definition at line 197 of file rosinljubljana_objects.cpp.
| void Robot::setPositionOrientation | ( | tf::Vector3 | position, |
| tf::Quaternion | orientation | ||
| ) |
Sets robot position and oriantation.
| position | Vector of robot position |
| oriantation | Quaternion of robot orienation |
Definition at line 243 of file rosinljubljana_objects.cpp.
| void Robot::transmitFrames | ( | ) |
Transmits frames of robot.
Definition at line 523 of file rosinljubljana_objects.cpp.
Transmits Laser scan massage of robot
| robotek_list | List of Numbers of all present robots |
| list_length | Number of all robots |
Definition at line 431 of file rosinljubljana_objects.cpp.
| void Robot::transmitOdom | ( | ) |
Transmit odometry_msg of robot.
Definition at line 410 of file rosinljubljana_objects.cpp.
| void Robot::transmitPoseFromAlvarPoseMsg | ( | ) |
Updates robot position and orientation from alvar marker position, and transmits pose msg.
Definition at line 251 of file rosinljubljana_objects.cpp.
| void Robot::updatePositionOrientation | ( | ) |
Updates robot position and orientation from alvar marker position, and speed of robot.
Definition at line 305 of file rosinljubljana_objects.cpp.
| float Robot::angularz |
Definition at line 338 of file rosinljubljana.h.
| tf::TransformBroadcaster Robot::br |
Broadcaster and listener of robot transforms.
Definition at line 319 of file rosinljubljana.h.
| float Robot::fi |
Definition at line 339 of file rosinljubljana.h.
| std::stringstream Robot::frameAr_pose_markerName |
Name of alvar marker frame.
Definition at line 311 of file rosinljubljana.h.
| std::stringstream Robot::frameBase_linkName |
Name of base_link frame.
Definition at line 301 of file rosinljubljana.h.
| std::stringstream Robot::frameMapName |
Name of map frame.
Definition at line 295 of file rosinljubljana.h.
| std::stringstream Robot::frameOdomName |
Name of odom frame.
Definition at line 298 of file rosinljubljana.h.
| ros::Publisher Robot::LaserScan_publisher |
Publishers of LaserScan msg and Odometry msg.
Definition at line 323 of file rosinljubljana.h.
| std::stringstream Robot::LaserScan_publisher_name |
Name of LaserScan publisher.
Definition at line 304 of file rosinljubljana.h.
| tf::TransformListener Robot::listener |
Definition at line 320 of file rosinljubljana.h.
| std::string Robot::name |
Number of robot.
Definition at line 292 of file rosinljubljana.h.
| nav_msgs::Odometry Robot::odom |
Variable for storing Odometry msg.
Definition at line 328 of file rosinljubljana.h.
| ros::Publisher Robot::odom_publisher |
Definition at line 324 of file rosinljubljana.h.
| std::stringstream Robot::odom_publisher_name |
Name of odometry publisher.
Definition at line 307 of file rosinljubljana.h.
| geometry_msgs::PoseWithCovarianceStamped Robot::pose_alvar |
Vaifable for storing pose from alvar.
Definition at line 331 of file rosinljubljana.h.
| ros::Publisher Robot::pose_alvar_publisher |
Definition at line 325 of file rosinljubljana.h.
| std::stringstream Robot::pose_alvar_publisher_name |
Definition at line 308 of file rosinljubljana.h.
| std::stringstream Robot::robot_ekf_odom_subscriber_name |
Definition at line 289 of file rosinljubljana.h.
| ros::Subscriber Robot::sub_ekf_odom |
subscriber for robot odometry from ekf_odom
Definition at line 288 of file rosinljubljana.h.
| ros::Time Robot::time |
Variables for determening time difference.
Definition at line 334 of file rosinljubljana.h.
| ros::Time Robot::time_2 |
Definition at line 335 of file rosinljubljana.h.
| tf::Transform Robot::transformBase_Link |
Definition at line 316 of file rosinljubljana.h.
| tf::Transform Robot::transformMap |
Variables for transforms of frames.
Definition at line 314 of file rosinljubljana.h.
| tf::Transform Robot::transformOdom |
Definition at line 315 of file rosinljubljana.h.
| float Robot::vx |
variables for storing position, veloctiy parameters
Definition at line 338 of file rosinljubljana.h.
| float Robot::vy |
Definition at line 338 of file rosinljubljana.h.
| float Robot::x |
Definition at line 339 of file rosinljubljana.h.
| float Robot::y |
Definition at line 339 of file rosinljubljana.h.