Populates a given entity with all the contents of the <collider> tag in robot description.
More...
#include <CollidersMaker.h>
Populates a given entity with all the contents of the <collider> tag in robot description.
ROS2::CollidersMaker::CollidersMaker |
( |
const AZStd::shared_ptr< Utils::UrdfAssetMap > & |
urdfAssetsMapping | ) |
|
Construct the class based on URDF asset mapping.
- Parameters
-
urdfAssetsMapping | a prepared mapping of Assets used by the source URDF. |
void ROS2::CollidersMaker::AddColliders |
( |
urdf::LinkSharedPtr |
link, |
|
|
AZ::EntityId |
entityId |
|
) |
| |
Add zero, one or many collider elements (depending on link content).
- Parameters
-
link | A parsed URDF tree link node which could hold information about colliders. |
entityId | A non-active entity which will be affected. |
void ROS2::CollidersMaker::BuildColliders |
( |
urdf::LinkSharedPtr |
link | ) |
|
Builds .pxmeshes for every collider in link collider mesh.
- Parameters
-
link | A 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
-
buildReadyCb | Function to call when the processing finishes. |
The documentation for this class was generated from the following file:
- Gems/ROS2/Code/Source/RobotImporter/URDF/CollidersMaker.h