gazebo-yarp-plugins
Gazebo Plugins exposing YARP interfaces.
Loading...
Searching...
No Matches
GazeboYarpPlugins::ClockServerImpl Class Reference

#include <ClockServerImpl.h>

Inheritance diagram for GazeboYarpPlugins::ClockServerImpl:
Collaboration diagram for GazeboYarpPlugins::ClockServerImpl:

Public Member Functions

 ClockServerImpl (gazebo::GazeboYarpClock &clockPlugin)
 
virtual void pauseSimulation ()
 Pause the simulation if it was running.
 
virtual void continueSimulation ()
 Resume the simulation if it was paused.
 
virtual void stepSimulation (const int32_t numberOfSteps=1)
 
virtual void stepSimulationAndWait (const int32_t numberOfSteps=1)
 
virtual void resetSimulationTime ()
 Reset the simulation time back to zero.
 
virtual void resetSimulation ()
 Reset the simulation state and time.
 
virtual double getSimulationTime ()
 Get the current simulation time.
 
virtual double getStepSize ()
 Get the current step size in seconds.
 
virtual void resetSimulationState ()
 Reset the simulation state back to initial pose.
 
virtual void stepSimulation (const std::int32_t numberOfSteps=1)
 Steps the simulation for the provided number of steps.
 
virtual void stepSimulationAndWait (const std::int32_t numberOfSteps=1)
 Steps the simulation for the provided number of steps.
 
virtual std::vector< std::string > help (const std::string &functionName="--all")
 
virtual std::vector< std::string > help (const std::string &functionName="--all")
 
bool read (yarp::os::ConnectionReader &connection) override
 
bool read (yarp::os::ConnectionReader &connection) override
 

Constructor & Destructor Documentation

◆ ClockServerImpl()

GazeboYarpPlugins::ClockServerImpl::ClockServerImpl ( gazebo::GazeboYarpClock & clockPlugin)

Member Function Documentation

◆ pauseSimulation()

void GazeboYarpPlugins::ClockServerImpl::pauseSimulation ( )
virtual

Pause the simulation if it was running.

Reimplemented from GazeboYarpPlugins::ClockServer.

◆ continueSimulation()

void GazeboYarpPlugins::ClockServerImpl::continueSimulation ( )
virtual

Resume the simulation if it was paused.

Reimplemented from GazeboYarpPlugins::ClockServer.

◆ stepSimulation() [1/2]

void GazeboYarpPlugins::ClockServerImpl::stepSimulation ( const int32_t numberOfSteps = 1)
virtual

◆ stepSimulationAndWait() [1/2]

void GazeboYarpPlugins::ClockServerImpl::stepSimulationAndWait ( const int32_t numberOfSteps = 1)
virtual

◆ resetSimulationTime()

void GazeboYarpPlugins::ClockServerImpl::resetSimulationTime ( )
virtual

Reset the simulation time back to zero.

Reimplemented from GazeboYarpPlugins::ClockServer.

◆ resetSimulation()

void GazeboYarpPlugins::ClockServerImpl::resetSimulation ( )
virtual

Reset the simulation state and time.

Reimplemented from GazeboYarpPlugins::ClockServer.

◆ getSimulationTime()

double GazeboYarpPlugins::ClockServerImpl::getSimulationTime ( )
virtual

Get the current simulation time.

Returns
the simulation time.

Reimplemented from GazeboYarpPlugins::ClockServer.

◆ getStepSize()

double GazeboYarpPlugins::ClockServerImpl::getStepSize ( )
virtual

Get the current step size in seconds.

Returns
the step size in seconds

Reimplemented from GazeboYarpPlugins::ClockServer.

◆ resetSimulationState()

void GazeboYarpPlugins::ClockServerImpl::resetSimulationState ( )
virtual

Reset the simulation state back to initial pose.

Reimplemented from GazeboYarpPlugins::ClockServer.

◆ stepSimulation() [2/2]

void GazeboYarpPlugins::ClockServer::stepSimulation ( const std::int32_t numberOfSteps = 1)
virtualinherited

Steps the simulation for the provided number of steps.

The input parameter is the number of steps, not the time (Usually 1 step = 1ms but this is not guaranteed)

Note
: this function (will be) not blocking, i.e. it will return immediately. Currently calling this function twice before the previous call actually ends its computation gives and undefined behavior.
Parameters
numberOfStepsnumber of steps to simulate

◆ stepSimulationAndWait() [2/2]

void GazeboYarpPlugins::ClockServer::stepSimulationAndWait ( const std::int32_t numberOfSteps = 1)
virtualinherited

Steps the simulation for the provided number of steps.

The input parameter is the number of steps, not the time (Usually 1 step = 1ms but this is not guaranteed)

Note
: this function is blocking
Parameters
numberOfStepsnumber of steps to simulate

◆ help() [1/2]

std::vector< std::string > GazeboYarpPlugins::ClockServer::help ( const std::string & functionName = "--all")
virtualinherited

◆ help() [2/2]

virtual std::vector< std::string > GazeboYarpPlugins::ClockServer::help ( const std::string & functionName = "--all")
virtualinherited

◆ read() [1/2]

bool GazeboYarpPlugins::ClockServer::read ( yarp::os::ConnectionReader & connection)
overrideinherited

◆ read() [2/2]

bool GazeboYarpPlugins::ClockServer::read ( yarp::os::ConnectionReader & connection)
overrideinherited

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