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

#include <SensorsMaker.h>

Public Member Functions

AZStd::vector< AZ::EntityId > AddSensors (const sdf::Model &model, const sdf::Link *link, AZ::EntityId entityId)
 
const AZStd::set< AZStd::string > & GetStatusMessages () const
 

Detailed Description

Populates a given entity with all the contents of the <sensor> tag. Sensors are specified as children of link or joint in SDFormat.

Member Function Documentation

◆ AddSensors()

AZStd::vector<AZ::EntityId> ROS2::SensorsMaker::AddSensors ( const sdf::Model &  model,
const sdf::Link *  link,
AZ::EntityId  entityId 
)

Adds a sensor to an entity and sets it accordingly based on SDFormat description.

Parameters
modelA parsed SDF model which could hold information about sensor to be made.
linkA parsed SDF tree link node used to identify link being currently processed.
entityIdA non-active entity which will be affected.
Returns
List containing any entities with sensors that were created.

◆ GetStatusMessages()

const AZStd::set<AZStd::string>& ROS2::SensorsMaker::GetStatusMessages ( ) const

Get a reference to collection of status messages (read-only)

Returns
A reference to set containing status messages.

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