Tutorial to Switch Mesh during Runtime#
Overview#
This tutorial walks you through the steps to switch the mesh for a different object for FoundationPose during runtime.
Note
The runtime switching of the mesh is only supported for the pose estimation node. It may lead to unexpected behavior if used with the tracking node.
Tutorial Walkthrough#
Complete the Isaac ROS FoundationPose Quickstart Guide.
Keep FoundationPose running, and open a new terminal and activate the Isaac ROS environment:
isaac-ros activateRun the following command to switch the mesh during runtime:
ros2 param set /foundationpose mesh_file_path "<path_to_new_object_mesh>"
(Optional) If you have multiple parameters associated with the mesh, you can create a YAML file with the parameters and run the following command to switch the mesh during runtime:
ros2 param load /foundationpose "<path_to_new_mesh_parameters>"
The following parameters associated with the mesh are supported to be switched during runtime:
mesh_file_pathsymmetry_axessymmetry_planesfixed_translationsfixed_axis_anglesrot_normalizerscore_crop_ratio