17 #ifndef _GAZEBO_WORLD_PRIVATE_HH_
18 #define _GAZEBO_WORLD_PRIVATE_HH_
24 #include <boost/thread.hpp>
165 public: sdf::ElementPtr
sdf;
219 public: std::deque<WorldState>
states[2];
msgs::Scene sceneMsg
Outgoing scene message.
Definition: WorldPrivate.hh:130
boost::shared_ptr< Base > BasePtr
Definition: PhysicsTypes.hh:66
sdf::SDFPtr factorySDF
Store a factory SDF object to improve speed at which objects are inserted via the factory...
Definition: WorldPrivate.hh:238
bool resetModelOnly
True to reset only model poses.
Definition: WorldPrivate.hh:192
common::Time prevStepWallTime
For keeping track of time step throttling.
Definition: WorldPrivate.hh:46
std::string name
Name of the world.
Definition: WorldPrivate.hh:64
transport::SubscriberPtr modelSub
Subscriber to model messages.
Definition: WorldPrivate.hh:121
std::list< std::string > deleteEntity
List of entities to delete.
Definition: WorldPrivate.hh:171
uint64_t iterations
The number of simulation iterations.
Definition: WorldPrivate.hh:247
boost::recursive_mutex * worldUpdateMutex
Used by World classs in following calls: World::Step for then entire function World::StepWorld for ch...
Definition: WorldPrivate.hh:162
std::list< Entity * > dirtyPoses
when physics engine makes an update and changes a link pose, this flag is set to trigger Entity::SetW...
Definition: WorldPrivate.hh:287
common::Time pauseStartTime
Time at which pause started.
Definition: WorldPrivate.hh:139
common::Time prevProcessMsgsTime
Last time incoming messages were processed.
Definition: WorldPrivate.hh:213
bool loaded
True if the world has been loaded.
Definition: WorldPrivate.hh:198
boost::thread * thread
thread in which the world is updated.
Definition: WorldPrivate.hh:58
std::set< ModelPtr > publishModelPoses
The list of models that need to publish their pose.
Definition: WorldPrivate.hh:241
transport::SubscriberPtr controlSub
Subscriber to world control messages.
Definition: WorldPrivate.hh:109
boost::shared_ptr< Subscriber > SubscriberPtr
Definition: TransportTypes.hh:53
bool initialized
True if the world has been initialized.
Definition: WorldPrivate.hh:195
transport::PublisherPtr responsePub
Publisher for request response messages.
Definition: WorldPrivate.hh:91
Forward declarations for transport.
Model_V models
A cached list of models. This is here for performance.
Definition: WorldPrivate.hh:278
boost::thread * logThread
Worker thread for logging.
Definition: WorldPrivate.hh:275
uint64_t stopIterations
The number of simulation iterations to take before stopping.
Definition: WorldPrivate.hh:250
transport::NodePtr node
Transportation node.
Definition: WorldPrivate.hh:85
transport::PublisherPtr guiPub
Publisher for gui messages.
Definition: WorldPrivate.hh:97
std::vector< WorldPluginPtr > plugins
All the plugins.
Definition: WorldPrivate.hh:168
event::Connection_V connections
All the event connections.
Definition: WorldPrivate.hh:82
transport::SubscriberPtr requestSub
Subscriber to request messages.
Definition: WorldPrivate.hh:124
Information for use in an update event.
Definition: UpdateInfo.hh:30
boost::mutex factoryDeleteMutex
This mutex is used to by the ::RemoveModel and ::ProcessFactoryMsgs functions.
Definition: WorldPrivate.hh:282
int stepInc
Number of steps in increment by.
Definition: WorldPrivate.hh:79
default namespace for gazebo
common::Time prevStatTime
Last time a world statistics message was sent.
Definition: WorldPrivate.hh:136
boost::mutex entityDeleteMutex
Mutex to protect the deleteEntity list.
Definition: WorldPrivate.hh:272
boost::mutex * loadModelMutex
Mutex to protext loading of models.
Definition: WorldPrivate.hh:148
transport::PublisherPtr poseLocalPub
Publisher for local pose messages.
Definition: WorldPrivate.hh:106
Private data class for World.
Definition: WorldPrivate.hh:43
bool enablePhysicsEngine
True to enable the physics engine.
Definition: WorldPrivate.hh:201
std::list< msgs::Factory > factoryMsgs
Factory message buffer.
Definition: WorldPrivate.hh:177
boost::shared_ptr< PhysicsEngine > PhysicsEnginePtr
Definition: PhysicsTypes.hh:106
sdf::ElementPtr sdf
THe world's SDF values.
Definition: WorldPrivate.hh:165
transport::SubscriberPtr jointSub
Subscriber to joint messages.
Definition: WorldPrivate.hh:115
msgs::WorldStatistics worldStatsMsg
Outgoing world statistics message.
Definition: WorldPrivate.hh:127
PhysicsEnginePtr physicsEngine
Pointer the physics engine.
Definition: WorldPrivate.hh:49
void(World::* modelUpdateFunc)()
Function pointer to the model update function.
Definition: WorldPrivate.hh:133
The world provides access to all other object within a simulated environment.
Definition: World.hh:62
BasePtr rootElement
The root of all entities in the world.
Definition: WorldPrivate.hh:55
common::Time realTimeOffset
Used to compute a more accurate real time value.
Definition: WorldPrivate.hh:142
transport::PublisherPtr modelPub
Publisher for model messages.
Definition: WorldPrivate.hh:94
transport::PublisherPtr lightPub
Publisher for light messages.
Definition: WorldPrivate.hh:100
bool resetAll
True to reset everything.
Definition: WorldPrivate.hh:186
common::Time pauseTime
Amount of time simulation has been paused.
Definition: WorldPrivate.hh:70
boost::mutex * setWorldPoseMutex
: Add an accessor for this, and make it private Used in Entity.cc.
Definition: WorldPrivate.hh:154
common::SphericalCoordinatesPtr sphericalCoordinates
Pointer the spherical coordinates data.
Definition: WorldPrivate.hh:52
common::Time sleepOffset
sleep timing error offset due to clock wake up latency
Definition: WorldPrivate.hh:210
WorldState prevStates[2]
Buffer of prev states.
Definition: WorldPrivate.hh:225
boost::recursive_mutex * receiveMutex
Mutex to protect incoming message buffers.
Definition: WorldPrivate.hh:145
boost::condition_variable logContinueCondition
Condition used to guarantee the log worker thread doesn't skip an interation.
Definition: WorldPrivate.hh:257
std::vector< ConnectionPtr > Connection_V
Definition: CommonTypes.hh:148
int stateToggle
Int used to toggle between prevStates.
Definition: WorldPrivate.hh:228
WorldState logPlayState
Current state when playing from a log file.
Definition: WorldPrivate.hh:234
boost::shared_ptr< Node > NodePtr
Definition: TransportTypes.hh:57
bool needsReset
True to reset the world on next update.
Definition: WorldPrivate.hh:183
bool pluginsLoaded
True if the plugins have been loaded.
Definition: WorldPrivate.hh:207
boost::condition_variable logCondition
Condition used for log worker.
Definition: WorldPrivate.hh:253
bool stop
True to stop the world from running.
Definition: WorldPrivate.hh:61
transport::PublisherPtr posePub
Publisher for pose messages.
Definition: WorldPrivate.hh:103
boost::mutex logBufferMutex
Mutex to protect the log state buffers.
Definition: WorldPrivate.hh:269
common::Time processMsgsPeriod
Period over which messages should be processed.
Definition: WorldPrivate.hh:216
std::deque< WorldState > states[2]
Alternating buffer of states.
Definition: WorldPrivate.hh:219
transport::PublisherPtr statPub
Publisher for world statistics messages.
Definition: WorldPrivate.hh:88
std::vector< ModelPtr > Model_V
Definition: PhysicsTypes.hh:170
common::UpdateInfo updateInfo
Info passed through the WorldUpdateBegin event.
Definition: WorldPrivate.hh:244
common::Time startTime
Clock time when simulation was started.
Definition: WorldPrivate.hh:73
transport::SubscriberPtr factorySub
Subscriber to factory messages.
Definition: WorldPrivate.hh:112
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Store state information of a physics::World object.
Definition: WorldState.hh:46
std::list< msgs::Request > requestMsgs
Request message buffer.
Definition: WorldPrivate.hh:174
std::list< msgs::Model > modelMsgs
Model message buffer.
Definition: WorldPrivate.hh:180
boost::shared_ptr< SphericalCoordinates > SphericalCoordinatesPtr
Definition: CommonTypes.hh:135
uint64_t logPrevIteration
Last iteration recorded by the log worker thread.
Definition: WorldPrivate.hh:260
transport::SubscriberPtr lightSub
Subscriber to light messages.
Definition: WorldPrivate.hh:118
RayShapePtr testRay
Ray used to test for collisions when placing entities.
Definition: WorldPrivate.hh:204
bool resetTimeOnly
True to reset only the time.
Definition: WorldPrivate.hh:189
int currentStateBuffer
Keep track of current state buffer being updated.
Definition: WorldPrivate.hh:222
sdf::ElementPtr logPlayStateSDF
State from from log file.
Definition: WorldPrivate.hh:231
common::Time logRealTime
Real time value set from a log file.
Definition: WorldPrivate.hh:263
common::Time simTime
Current simulation time.
Definition: WorldPrivate.hh:67
bool pause
True if simulation is paused.
Definition: WorldPrivate.hh:76
boost::mutex logMutex
Mutex to protect the log worker thread.
Definition: WorldPrivate.hh:266
A Time class, can be used to hold wall- or sim-time.
Definition: Time.hh:43
boost::shared_ptr< RayShape > RayShapePtr
Definition: PhysicsTypes.hh:114