Open 3D Engine ROS2 Gem API Reference  23.05.0
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 std::map< std::string, urdf::MaterialSharedPtr > &materials, const AZStd::shared_ptr< Utils::UrdfAssetMap > &urdfAssetsMapping)
 
void AddVisuals (urdf::LinkSharedPtr 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

void ROS2::VisualsMaker::AddVisuals ( urdf::LinkSharedPtr  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.

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