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

Populates a given entity with all the contents of the <visual> tag in robot description. More...

#include <VisualsMaker.h>

Public Member Functions

 VisualsMaker (const AZStd::shared_ptr< Utils::UrdfAssetMap > &urdfAssetsMapping)
 
AZStd::vector< AZ::EntityId > AddVisuals (const sdf::Link *link, AZ::EntityId entityId) const
 

Detailed Description

Populates a given entity with all the contents of the <visual> tag in robot description.

Member Function Documentation

◆ AddVisuals()

AZStd::vector<AZ::EntityId> ROS2::VisualsMaker::AddVisuals ( const sdf::Link *  link,
AZ::EntityId  entityId 
) const

Add zero, one or many visual elements to a given entity (depending on link content). Note that a sub-entity will be added to hold each visual (since they can have different transforms).

Parameters
linkA parsed URDF tree link node which could hold information about visuals.
entityIdA non-active entity which will be affected.
Returns
List containing any entities created.

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