Defines | Functions | Variables
traxbot_sensors_node.cpp File Reference
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <vector>
#include <ros/ros.h>
#include <tf/transform_broadcaster.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Twist.h>
#include <cereal_port/CerealPort.h>
#include <geometry_msgs/Vector3.h>
#include <std_msgs/String.h>
#include <std_msgs/Float32.h>
Include dependency graph for traxbot_sensors_node.cpp:

Go to the source code of this file.

Defines

#define AXLE_LENGTH   0.180
#define MAX_ENCODER_COUNT   32768
#define NORMALIZE(z)   atan2(sin(z), cos(z))
#define PULSES_TO_M   0.000087512033

Functions

void classifficationCB (const std_msgs::String::ConstPtr &msg)
void cmdVelReceived (const geometry_msgs::Twist::ConstPtr &cmd_vel)
std::string drive (double linear_speed, double angular_speed, int ID_Robot)
int main (int argc, char **argv)
void robotDataCallback (std::string *data)
bool signof (int n)

Variables

bool confirm_communication = true
ros::Time current_time
int ID_Robot = 0
ros::Time last_time
double last_time_pub = 0.0
int left_encoder_prev = 0
tf::TransformBroadcasterodom_broadcaster_ptr
ros::Publisherodom_pub_ptr
double odometry_x_ = 0.0
double odometry_y_ = 0.0
double odometry_yaw_ = 0.0
ros::Publisher pub_LDRsensor
ros::Publisher pub_sensors
int right_encoder_prev = 0
cereal::CerealPort serial_port
ros::Subscriber sub_class

Define Documentation

#define AXLE_LENGTH   0.180

Definition at line 19 of file traxbot_sensors_node.cpp.

#define MAX_ENCODER_COUNT   32768

Definition at line 17 of file traxbot_sensors_node.cpp.

#define NORMALIZE (   z)    atan2(sin(z), cos(z))

Definition at line 23 of file traxbot_sensors_node.cpp.

#define PULSES_TO_M   0.000087512033

Definition at line 20 of file traxbot_sensors_node.cpp.


Function Documentation

void classifficationCB ( const std_msgs::String::ConstPtr &  msg)

Definition at line 225 of file traxbot_sensors_node.cpp.

void cmdVelReceived ( const geometry_msgs::Twist::ConstPtr &  cmd_vel)

Definition at line 217 of file traxbot_sensors_node.cpp.

std::string drive ( double  linear_speed,
double  angular_speed,
int  ID_Robot 
)

Definition at line 195 of file traxbot_sensors_node.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 234 of file traxbot_sensors_node.cpp.

void robotDataCallback ( std::string *  data)

Definition at line 51 of file traxbot_sensors_node.cpp.

bool signof ( int  n)

Definition at line 39 of file traxbot_sensors_node.cpp.


Variable Documentation

bool confirm_communication = true

Definition at line 40 of file traxbot_sensors_node.cpp.

Definition at line 36 of file traxbot_sensors_node.cpp.

int ID_Robot = 0

Definition at line 41 of file traxbot_sensors_node.cpp.

Definition at line 36 of file traxbot_sensors_node.cpp.

double last_time_pub = 0.0

Definition at line 37 of file traxbot_sensors_node.cpp.

Definition at line 47 of file traxbot_sensors_node.cpp.

Definition at line 31 of file traxbot_sensors_node.cpp.

Definition at line 27 of file traxbot_sensors_node.cpp.

double odometry_x_ = 0.0

Definition at line 43 of file traxbot_sensors_node.cpp.

double odometry_y_ = 0.0

Definition at line 44 of file traxbot_sensors_node.cpp.

double odometry_yaw_ = 0.0

Definition at line 45 of file traxbot_sensors_node.cpp.

Definition at line 29 of file traxbot_sensors_node.cpp.

Definition at line 28 of file traxbot_sensors_node.cpp.

Definition at line 46 of file traxbot_sensors_node.cpp.

Definition at line 35 of file traxbot_sensors_node.cpp.

Definition at line 30 of file traxbot_sensors_node.cpp.



mrl_robots_sensors
Author(s): André Araújo and Nuno Ferreira
autogenerated on Mon Jan 6 2014 11:27:36