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::SensorsMaker Class Reference

#include <SensorsMaker.h>

Public Member Functions

void AddSensors (const sdf::Model &model, const sdf::Link *link, AZ::EntityId entityId) 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()

void ROS2::SensorsMaker::AddSensors ( const sdf::Model &  model,
const sdf::Link *  link,
AZ::EntityId  entityId 
) const

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
created components Id or string with fail

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