Defines | Functions | Variables
stingbot_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 stingbot_sensors_node.cpp:

Go to the source code of this file.

Defines

#define BAUD_RATE   115200
#define MAX_ENCODER_COUNT   32768
#define NORMALIZE(z)   atan2(sin(z), cos(z))
#define TRAXBOT_AXLE_LENGTH   0.225
#define TRAXBOT_PULSES_TO_M   0.000073529

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 BAUD_RATE   115200

Definition at line 17 of file stingbot_sensors_node.cpp.

#define MAX_ENCODER_COUNT   32768

Definition at line 18 of file stingbot_sensors_node.cpp.

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

Definition at line 24 of file stingbot_sensors_node.cpp.

#define TRAXBOT_AXLE_LENGTH   0.225

Definition at line 20 of file stingbot_sensors_node.cpp.

#define TRAXBOT_PULSES_TO_M   0.000073529

Definition at line 21 of file stingbot_sensors_node.cpp.


Function Documentation

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

Definition at line 225 of file stingbot_sensors_node.cpp.

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

Definition at line 217 of file stingbot_sensors_node.cpp.

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

Definition at line 195 of file stingbot_sensors_node.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 234 of file stingbot_sensors_node.cpp.

void robotDataCallback ( std::string *  data)

Definition at line 50 of file stingbot_sensors_node.cpp.

bool signof ( int  n)

Definition at line 38 of file stingbot_sensors_node.cpp.


Variable Documentation

bool confirm_communication = true

Definition at line 39 of file stingbot_sensors_node.cpp.

Definition at line 35 of file stingbot_sensors_node.cpp.

int ID_Robot = 0

Definition at line 40 of file stingbot_sensors_node.cpp.

Definition at line 35 of file stingbot_sensors_node.cpp.

double last_time_pub = 0.0

Definition at line 36 of file stingbot_sensors_node.cpp.

Definition at line 46 of file stingbot_sensors_node.cpp.

Definition at line 32 of file stingbot_sensors_node.cpp.

Definition at line 28 of file stingbot_sensors_node.cpp.

double odometry_x_ = 0.0

Definition at line 42 of file stingbot_sensors_node.cpp.

double odometry_y_ = 0.0

Definition at line 43 of file stingbot_sensors_node.cpp.

double odometry_yaw_ = 0.0

Definition at line 44 of file stingbot_sensors_node.cpp.

Definition at line 30 of file stingbot_sensors_node.cpp.

Definition at line 29 of file stingbot_sensors_node.cpp.

Definition at line 45 of file stingbot_sensors_node.cpp.

Definition at line 34 of file stingbot_sensors_node.cpp.

Definition at line 31 of file stingbot_sensors_node.cpp.



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