17 #ifndef _GAZEBO_LINEAR_BATTERY_PLUGIN_HH_
18 #define _GAZEBO_LINEAR_BATTERY_PLUGIN_HH_
25 #include "gazebo/physics/physics.hh"
39 public:
virtual void Init();
42 public:
virtual void Reset();
68 protected: sdf::ElementPtr
sdf;
85 protected:
double tau;
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:153
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:88
event::ConnectionPtr updateConnection
Connection to World Update events.
Definition: LinearBatteryPlugin.hh:50
physics::WorldPtr world
Pointer to world.
Definition: LinearBatteryPlugin.hh:53
double q
Instantaneous battery charge in Ah.
Definition: LinearBatteryPlugin.hh:94
double e0
Open-circuit voltage.
Definition: LinearBatteryPlugin.hh:72
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:116
common::BatteryPtr battery
Pointer to battery contained in link.
Definition: LinearBatteryPlugin.hh:65
sdf::ElementPtr sdf
SDF for this plugin;.
Definition: LinearBatteryPlugin.hh:68
physics::ModelPtr model
Pointer to model containing plugin.
Definition: LinearBatteryPlugin.hh:59
std::shared_ptr< Battery > BatteryPtr
Definition: CommonTypes.hh:144
physics::PhysicsEnginePtr physics
Pointer to physics engine.
Definition: LinearBatteryPlugin.hh:56
double c
Battery capacity in Ah.
Definition: LinearBatteryPlugin.hh:79
double ismooth
Smoothed battery current in A.
Definition: LinearBatteryPlugin.hh:91
double q0
Initial battery charge in Ah.
Definition: LinearBatteryPlugin.hh:76
double tau
Current low-pass filter characteristic time in seconds.
Definition: LinearBatteryPlugin.hh:85
physics::LinkPtr link
Pointer to link containing battery link.
Definition: LinearBatteryPlugin.hh:62
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:84
double iraw
Raw battery current in A.
Definition: LinearBatteryPlugin.hh:88
double e1
Definition: LinearBatteryPlugin.hh:73
double r
Battery inner resistance in Ohm.
Definition: LinearBatteryPlugin.hh:82
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
A plugin with access to physics::Model.
Definition: Plugin.hh:245
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:59
boost::shared_ptr< Link > LinkPtr
Definition: PhysicsTypes.hh:100
A plugin that simulates a linear battery.
Definition: LinearBatteryPlugin.hh:30