Open 3D Engine ROS2 Gem API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ROS2::PhysicsBasedSource Class Referencefinal

#include <PhysicsBasedSource.h>

Inherits ROS2::SensorEventSource< AZ::OrderedEvent, AZ::OrderedEventHandler, AzPhysics::SceneHandle, float >.

Public Member Functions

 AZ_TYPE_INFO (PhysicsBasedSource, "{48BB21A8-F14E-4869-95DC-28EEA279Cf53}")
 
void Start () override
 
void Stop () override
 
float GetDeltaTime (AzPhysics::SceneHandle sceneHandle, float deltaTime) const override
 
- Public Member Functions inherited from ROS2::SensorEventSource< AZ::OrderedEvent, AZ::OrderedEventHandler, AzPhysics::SceneHandle, float >
virtual void Start ()
 
virtual void Stop ()
 
virtual float GetDeltaTime (EventArgs... args) const=0
 
void ConnectToSourceEvent (SourceEventHandlerType &sourceEventHandler)
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 

Additional Inherited Members

- Public Types inherited from ROS2::SensorEventSource< AZ::OrderedEvent, AZ::OrderedEventHandler, AzPhysics::SceneHandle, float >
using SourceBaseType = SensorEventSource< AZ::OrderedEvent, AZ::OrderedEventHandler, EventArgs... >
 
using SourceCallbackType = AZStd::function< void(EventArgs...)>
 
using AdaptedCallbackType = AZStd::function< void(float, EventArgs...)>
 
using SourceEventType = AZ::OrderedEvent< EventArgs... >
 
using SourceEventHandlerType = AZ::OrderedEventHandler< EventArgs... >
 
using AdaptedEventType = AZ::OrderedEvent< float, EventArgs... >
 
using AdaptedEventHandlerType = AZ::OrderedEventHandler< float, EventArgs... >
 
- Protected Attributes inherited from ROS2::SensorEventSource< AZ::OrderedEvent, AZ::OrderedEventHandler, AzPhysics::SceneHandle, float >
SourceEventType m_sourceEvent
 This event should be signalled based on specific event source specialization.
 

Detailed Description

Class implementing physics callbacks as sensor event source. Source event (ROS2::SensorEventSource) is signalled based on scene simulation finish event.

Note
The working frequency of this event source can be changed through engine settings (physics simulation delta).
See also
ROS2::SensorEventSource

Member Function Documentation

◆ Start()

void ROS2::PhysicsBasedSource::Start ( )
overridevirtual

Starts event source - see specific event source description for more details. After call to this method event source is supposed to start signalling source event.

Reimplemented from ROS2::SensorEventSource< AZ::OrderedEvent, AZ::OrderedEventHandler, AzPhysics::SceneHandle, float >.

◆ Stop()

void ROS2::PhysicsBasedSource::Stop ( )
overridevirtual

Stops event source - see specific event source description for more details. After call to this method event source is supposed to stop signalling source event.

Reimplemented from ROS2::SensorEventSource< AZ::OrderedEvent, AZ::OrderedEventHandler, AzPhysics::SceneHandle, float >.


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