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.
|
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 > &sdfAssetsMapping) | |
CollidersMaker (const CollidersMaker &other)=delete | |
Prevent copying of existing CollidersMaker. | |
void | AddColliders (const sdf::Model &model, const sdf::Link *link, AZ::EntityId entityId) |
void | ProcessMeshes (BuildReadyCallback notifyBuildReadyCb) |
Populates a given entity with all the contents of the <collider> tag in robot description.
ROS2::CollidersMaker::CollidersMaker | ( | const AZStd::shared_ptr< Utils::UrdfAssetMap > & | sdfAssetsMapping | ) |
Construct the class based on SDF asset mapping.
sdfAssetsMapping | a prepared mapping of Assets used by the source URDF/SDF. |
void ROS2::CollidersMaker::AddColliders | ( | const sdf::Model & | model, |
const sdf::Link * | link, | ||
AZ::EntityId | entityId | ||
) |
Add zero, one or many collider elements (depending on link content).
model | An SDF model object provided by libsdformat from a parsed URDF/SDF |
link | A parsed SDF tree link node which could hold information about colliders. |
entityId | A non-active entity which will be affected. |
void ROS2::CollidersMaker::ProcessMeshes | ( | BuildReadyCallback | notifyBuildReadyCb | ) |
Sends meshes required for colliders to asset processor.
buildReadyCb | Function to call when the processing finishes. |