Apartment Navigation
Gazebo Sim plugin for apartment robot navigation
Loading...
Searching...
No Matches
boris_apartment::WorldPluginMyRobot Class Reference

Gazebo Sim world plugin that logs simulation time once per second. More...

Inheritance diagram for boris_apartment::WorldPluginMyRobot:

Public Member Functions

void Configure (const gz::sim::Entity &_entity, const std::shared_ptr< const sdf::Element > &_sdf, gz::sim::EntityComponentManager &_ecm, gz::sim::EventManager &_eventMgr) override
 Called once by Gazebo when the plugin is loaded.
void PreUpdate (const gz::sim::UpdateInfo &p_info, gz::sim::EntityComponentManager &_ecm) override
 Called every simulation step before physics integration. Called repeadedly, even when simulation is paused.

Detailed Description

Gazebo Sim world plugin that logs simulation time once per second.

A minimal example plugin. Register in your SDF with:

<plugin filename="libhello_world.so" name="boris_apartment::WorldPluginMyRobot"/>

Member Function Documentation

◆ Configure()

void boris_apartment::WorldPluginMyRobot::Configure ( const gz::sim::Entity & _entity,
const std::shared_ptr< const sdf::Element > & _sdf,
gz::sim::EntityComponentManager & _ecm,
gz::sim::EventManager & _eventMgr )
inlineoverride

Called once by Gazebo when the plugin is loaded.

Parameters
_entitySDF entity that owns this plugin (unused).
_sdfParsed SDF element (unused).
_ecmEntity-component manager (unused).
_eventMgrEvent manager (unused).

◆ PreUpdate()

void boris_apartment::WorldPluginMyRobot::PreUpdate ( const gz::sim::UpdateInfo & p_info,
gz::sim::EntityComponentManager & _ecm )
inlineoverride

Called every simulation step before physics integration. Called repeadedly, even when simulation is paused.

Logs the current simulation time at most once per 1000 simulated seconds.

Parameters
p_infoSimulation step metadata (time, paused flag, …).
_ecmEntity-component manager (unused).

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