Public Member Functions | Private Attributes
stdr_robot::CO2Sensor Class Reference

#include <co2.h>

Inheritance diagram for stdr_robot::CO2Sensor:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CO2Sensor (const nav_msgs::OccupancyGrid &map, const stdr_msgs::CO2SensorMsg &msg, const std::string &name, ros::NodeHandle &n)
 Default constructor.
void receiveCO2Sources (const stdr_msgs::CO2SourceVector &msg)
 Receives the existent co2 sources.
virtual void updateSensorCallback ()
 Updates the sensor measurements.
 ~CO2Sensor (void)
 Default destructor.

Private Attributes

stdr_msgs::CO2SensorMsg _description
 < CO2 sensor description
stdr_msgs::CO2SourceVector co2_sources_
ros::Subscriber co2_sources_subscriber_
 The currently existent sources.

Detailed Description

Definition at line 42 of file co2.h.


Constructor & Destructor Documentation

stdr_robot::CO2Sensor::CO2Sensor ( const nav_msgs::OccupancyGrid &  map,
const stdr_msgs::CO2SensorMsg &  msg,
const std::string &  name,
ros::NodeHandle n 
)

Default constructor.

Parameters:
map[const nav_msgs::OccupancyGrid&] An occupancy grid map
msg[const stdr_msgs::CO2SensorMsg&] The CO2 sensor \ description message
name[const std::string&] The sensor frame id without the base
n[ros::NodeHandle&] The ROS node handle
Returns:
void
Parameters:
map[const nav_msgs::OccupancyGrid&] An occupancy grid map
msg[const stdr_msgs::CO2SensorMsg&] The sensor description message
name[const std::string&] The sensor frame id without the base
n[ros::NodeHandle&] The ROS node handle
Returns:
void

Definition at line 34 of file co2.cpp.

Default destructor.

Returns:
void

Definition at line 57 of file co2.cpp.


Member Function Documentation

void stdr_robot::CO2Sensor::receiveCO2Sources ( const stdr_msgs::CO2SourceVector &  msg)

Receives the existent co2 sources.

Receives the existent sources.

Parameters:
msg[const stdr_msgs::CO2SourceVector&] The CO2 sources message
Returns:
void

Definition at line 108 of file co2.cpp.

Updates the sensor measurements.

Returns:
void

!< Must implement the functionality

< Calculate distance

Implements stdr_robot::Sensor.

Definition at line 66 of file co2.cpp.


Member Data Documentation

stdr_msgs::CO2SensorMsg stdr_robot::CO2Sensor::_description [private]

< CO2 sensor description

ROS subscriber for CO2 sources

Definition at line 84 of file co2.h.

stdr_msgs::CO2SourceVector stdr_robot::CO2Sensor::co2_sources_ [private]

Definition at line 88 of file co2.h.

The currently existent sources.

Definition at line 87 of file co2.h.


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


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