$search

gazebo::GazeboRosPowerMonitor Class Reference
[GazeboRosPowerMonitor class]

power_monitor simulation More...

#include <gazebo_ros_power_monitor.h>

List of all members.

Public Member Functions

 GazeboRosPowerMonitor (Entity *parent)
virtual ~GazeboRosPowerMonitor ()

Protected Member Functions

virtual void FiniChild ()
virtual void InitChild ()
virtual void LoadChild (XMLConfigNode *node)
virtual void UpdateChild ()

Private Member Functions

void SetPlug (const pr2_gazebo_plugins::PlugCommandConstPtr &plug_msg)
 listen to ROS to see if we are charging

Private Attributes

double charge_
 charge state (Ah)
double charge_rate_
 charge rate (W)
ParamT< double > * charge_rate_param_
 charge rate when plugged in (W)
ParamT< double > * charge_voltage_param_
 charge voltage when plugged in (V)
double curr_time_
ParamT< double > * discharge_rate_param_
 discharge rate when not plugged in (W)
ParamT< double > * discharge_voltage_param_
 discharge voltage when plugged in (V)
ParamT< double > * full_capacity_param_
 internal variables for keeping track of simulated battery
double last_time_
boost::mutex lock_
 lock access to fields that are used in message callbacks
Model * model_
ros::Subscriber plugged_in_sub_
pr2_msgs::PowerState power_state_
ros::Publisher power_state_pub_
ParamT< double > * power_state_rate_param_
 rate to broadcast power state message
ParamT< std::string > * power_state_topic_param_
ParamT< std::string > * robot_namespace_param_
ros::NodeHandlerosnode_
double voltage_
 voltage (V)

Detailed Description

power_monitor simulation

Definition at line 101 of file gazebo_ros_power_monitor.h.


Constructor & Destructor Documentation

gazebo::GazeboRosPowerMonitor::GazeboRosPowerMonitor ( Entity *  parent  ) 

Definition at line 43 of file gazebo_ros_power_monitor.cpp.

gazebo::GazeboRosPowerMonitor::~GazeboRosPowerMonitor (  )  [virtual]

Definition at line 62 of file gazebo_ros_power_monitor.cpp.


Member Function Documentation

void gazebo::GazeboRosPowerMonitor::FiniChild (  )  [protected, virtual]

Definition at line 161 of file gazebo_ros_power_monitor.cpp.

void gazebo::GazeboRosPowerMonitor::InitChild (  )  [protected, virtual]

Definition at line 100 of file gazebo_ros_power_monitor.cpp.

void gazebo::GazeboRosPowerMonitor::LoadChild ( XMLConfigNode *  node  )  [protected, virtual]

Definition at line 76 of file gazebo_ros_power_monitor.cpp.

void gazebo::GazeboRosPowerMonitor::SetPlug ( const pr2_gazebo_plugins::PlugCommandConstPtr plug_msg  )  [private]

listen to ROS to see if we are charging

Definition at line 167 of file gazebo_ros_power_monitor.cpp.

void gazebo::GazeboRosPowerMonitor::UpdateChild (  )  [protected, virtual]

Definition at line 114 of file gazebo_ros_power_monitor.cpp.


Member Data Documentation

charge state (Ah)

Definition at line 156 of file gazebo_ros_power_monitor.h.

charge rate (W)

Definition at line 159 of file gazebo_ros_power_monitor.h.

charge rate when plugged in (W)

Definition at line 144 of file gazebo_ros_power_monitor.h.

charge voltage when plugged in (V)

Definition at line 150 of file gazebo_ros_power_monitor.h.

Definition at line 120 of file gazebo_ros_power_monitor.h.

discharge rate when not plugged in (W)

Definition at line 147 of file gazebo_ros_power_monitor.h.

discharge voltage when plugged in (V)

Definition at line 153 of file gazebo_ros_power_monitor.h.

internal variables for keeping track of simulated battery

full capacity of battery (Ah)

Definition at line 141 of file gazebo_ros_power_monitor.h.

Definition at line 121 of file gazebo_ros_power_monitor.h.

boost::mutex gazebo::GazeboRosPowerMonitor::lock_ [private]

lock access to fields that are used in message callbacks

Definition at line 131 of file gazebo_ros_power_monitor.h.

Definition at line 119 of file gazebo_ros_power_monitor.h.

Definition at line 127 of file gazebo_ros_power_monitor.h.

Definition at line 133 of file gazebo_ros_power_monitor.h.

Definition at line 128 of file gazebo_ros_power_monitor.h.

rate to broadcast power state message

Definition at line 136 of file gazebo_ros_power_monitor.h.

Definition at line 124 of file gazebo_ros_power_monitor.h.

Definition at line 123 of file gazebo_ros_power_monitor.h.

Definition at line 126 of file gazebo_ros_power_monitor.h.

voltage (V)

Definition at line 162 of file gazebo_ros_power_monitor.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


pr2_gazebo_plugins
Author(s): Sachin Chitta, Stu Glaser, John Hsu
autogenerated on Sat Mar 2 13:09:58 2013