Public Member Functions | Private Attributes
stdr_samples::ObstacleAvoidance Class Reference

Performs obstacle avoidance to a single robot. More...

#include <obstacle_avoidance.h>

List of all members.

Public Member Functions

void callback (const sensor_msgs::LaserScan &msg)
 Callback for the ros laser message.
 ObstacleAvoidance (int argc, char **argv)
 Default contructor.
 ~ObstacleAvoidance (void)
 Default destructor.

Private Attributes

ros::Publisher cmd_vel_pub_
std::string laser_topic_
 The speeds topic.
ros::NodeHandle n_
 The laser topic.
sensor_msgs::LaserScan scan_
 < The ros laser scan msg
std::string speeds_topic_
 The twist publisher.
ros::Subscriber subscriber_
 The ROS node handle.

Detailed Description

Performs obstacle avoidance to a single robot.

Definition at line 49 of file obstacle_avoidance.h.


Constructor & Destructor Documentation

stdr_samples::ObstacleAvoidance::ObstacleAvoidance ( int  argc,
char **  argv 
)

Default contructor.

Parameters:
argc[int] Number of input arguments
argv[char **] Input arguments
Returns:
void

Definition at line 35 of file obstacle_avoidance.cpp.

Default destructor.

Returns:
void

Definition at line 61 of file obstacle_avoidance.cpp.


Member Function Documentation

void stdr_samples::ObstacleAvoidance::callback ( const sensor_msgs::LaserScan &  msg)

Callback for the ros laser message.

Parameters:
msg[const sensor_msgs::LaserScan&] The new laser scan message
Returns:
void

Definition at line 71 of file obstacle_avoidance.cpp.


Member Data Documentation

Definition at line 69 of file obstacle_avoidance.h.

The speeds topic.

Definition at line 65 of file obstacle_avoidance.h.

The laser topic.

Definition at line 62 of file obstacle_avoidance.h.

sensor_msgs::LaserScan stdr_samples::ObstacleAvoidance::scan_ [private]

< The ros laser scan msg

Subscriber for the ros laser msg

Definition at line 56 of file obstacle_avoidance.h.

The twist publisher.

Definition at line 68 of file obstacle_avoidance.h.

The ROS node handle.

Definition at line 59 of file obstacle_avoidance.h.


The documentation for this class was generated from the following files:


stdr_samples
Author(s): Manos Tsardoulias, Chris Zalidis, Aris Thallas
autogenerated on Wed Sep 2 2015 03:36:41