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

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

#include <CollidersMaker.h>

Public Member Functions

 CollidersMaker (const AZStd::shared_ptr< Utils::UrdfAssetMap > &urdfAssetsMapping)
 
 CollidersMaker (const CollidersMaker &other)=delete
 Prevent copying of existing CollidersMaker.
 
void BuildColliders (urdf::LinkSharedPtr link)
 
void AddColliders (urdf::LinkSharedPtr link, AZ::EntityId entityId)
 
void ProcessMeshes (BuildReadyCallback notifyBuildReadyCb)
 

Detailed Description

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

Constructor & Destructor Documentation

ROS2::CollidersMaker::CollidersMaker ( const AZStd::shared_ptr< Utils::UrdfAssetMap > &  urdfAssetsMapping)

Construct the class based on URDF asset mapping.

Parameters
urdfAssetsMappinga prepared mapping of Assets used by the source URDF.

Member Function Documentation

void ROS2::CollidersMaker::AddColliders ( urdf::LinkSharedPtr  link,
AZ::EntityId  entityId 
)

Add zero, one or many collider elements (depending on link content).

Parameters
linkA parsed URDF tree link node which could hold information about colliders.
entityIdA non-active entity which will be affected.
void ROS2::CollidersMaker::BuildColliders ( urdf::LinkSharedPtr  link)

Builds .pxmeshes for every collider in link collider mesh.

Parameters
linkA parsed URDF tree link node which could hold information about colliders.
void ROS2::CollidersMaker::ProcessMeshes ( BuildReadyCallback  notifyBuildReadyCb)

Sends meshes required for colliders to asset processor.

Parameters
buildReadyCbFunction to call when the processing finishes.

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