Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes
GoDockAction Class Reference

#include <GoDock.h>

List of all members.

Public Member Functions

void batteryCallback (const roomba_500_series::BatteryConstPtr &bat)
 Battery callback.
void goalCallback (const roomba_500_series::GoDockGoalConstPtr &goal)
 Goal callback.
 GoDockAction (std::string name)
 Constructor.
void irCallback (const roomba_500_series::IRCharacterConstPtr &ir)
 IR callback.
 ~GoDockAction ()
 Destructor.

Protected Attributes

std::string action_name_
 Action name.
actionlib::SimpleActionServer
< roomba_500_series::GoDockAction
as_
 Action Server.
roomba_500_series::GoDockFeedback feedback_
 Message used to published feedback.
ros::NodeHandle nh_
 Node handle.
roomba_500_series::GoDockResult result_
 Message used to published result.

Private Member Functions

void sendCmdVel (float linear, float angular)
 Send velocity commands.

Private Attributes

ros::Subscriber bat_sub_
 Subscriver for battery, to check if the Roomba is docked.
ros::Publisher cmd_vel_pub_
 Publisher for cmd_vel, to move the robot.
bool dock_
 Whether the Roomba is docked or not.
roomba_500_series::IRCharacter ir_character_
 IR char.
ros::Subscriber ir_sub_
 Subscriver for ir_char, to read the dock beacon info.

Detailed Description

Definition at line 60 of file GoDock.h.


Constructor & Destructor Documentation

GoDockAction::GoDockAction ( std::string  name)

Constructor.

Parameters:
nameAction Server name.

Definition at line 39 of file GoDock.cpp.

Destructor.

Definition at line 47 of file GoDock.cpp.


Member Function Documentation

Battery callback.

This function is a callback for battery.

Parameters:
batRoomba battery message.

Definition at line 107 of file GoDock.cpp.

Goal callback.

This function is a callback for goals received.

Parameters:
goalNew goal.

Definition at line 52 of file GoDock.cpp.

IR callback.

This function is a callback for ir_char.

Parameters:
irRoomba ir message.

Definition at line 100 of file GoDock.cpp.

void GoDockAction::sendCmdVel ( float  linear,
float  angular 
) [private]

Send velocity commands.

This function allows to send velocity commands directly to the Roomba driver. Notice that if you are using move_base to move your Roomba you must cancel any existing goals or else move_base will try to move the Roomba while it tries to dock.

Parameters:
linearLinear velocity.
angularAngular velocity.

Definition at line 112 of file GoDock.cpp.


Member Data Documentation

std::string GoDockAction::action_name_ [protected]

Action name.

Definition at line 68 of file GoDock.h.

Action Server.

Definition at line 66 of file GoDock.h.

Subscriver for battery, to check if the Roomba is docked.

Definition at line 82 of file GoDock.h.

Publisher for cmd_vel, to move the robot.

Definition at line 77 of file GoDock.h.

bool GoDockAction::dock_ [private]

Whether the Roomba is docked or not.

Definition at line 87 of file GoDock.h.

Message used to published feedback.

Definition at line 71 of file GoDock.h.

IR char.

Definition at line 85 of file GoDock.h.

Subscriver for ir_char, to read the dock beacon info.

Definition at line 80 of file GoDock.h.

Node handle.

Definition at line 64 of file GoDock.h.

Message used to published result.

Definition at line 73 of file GoDock.h.


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


roomba_500_series
Author(s): Gonçalo Cabrita
autogenerated on Mon Jan 6 2014 11:26:40