After following the instructions in the website, it reports error when running the API launch command for foundationpose (replaced the path with correct path):
Command
ros2 launch isaac_ros_foundationpose isaac_ros_foundationpose.launch.py refine_model_file_path:=<path to refine onnx model> refine_engine_file_path:=<path to refine model .plan> score_model_file_path:=<path to score onnx model> score_engine_file_path:=<path to score model .plan> mesh_file_path:=<path to object mesh file> texture_path:=<path to texture map> launch_rviz:=<enable rviz> launch_bbox_to_mask:=<enable bbox to mask converter> mask_height:=<converted mask height> mask_width:=<converted mask width>
Error
[component_container_mt-1] 2024-06-17 20:32:37.319 ERROR ./gxf/extensions/tensor_rt/tensor_rt_inference.cpp@151: TRT ERROR: ModelImporter.cpp:733: Failed to parse ONNX model from file: /tmp/score_model.onnx
[component_container_mt-1] 2024-06-17 20:32:37.319 ERROR ./gxf/extensions/tensor_rt/tensor_rt_inference.cpp@472: Failed to parse ONNX file /tmp/score_model.onnx
[component_container_mt-1] 2024-06-17 20:32:37.442 ERROR ./gxf/extensions/tensor_rt/tensor_rt_inference.cpp@287: Failed to create engine plan for model /tmp/score_model.onnx.
The downloaded model files have no onnx files. May I know how we can get it? Thanks
ros2 launch isaac_ros_foundationpose isaac_ros_foundationpose.launch.py refine_model_file_path:=<path to refine onnx model> refine_engine_file_path:=<path to refine model .plan> score_model_file_path:=<path to score onnx model> score_engine_file_path:=<path to score model .plan> mesh_file_path:=<path to object mesh file> texture_path:=<path to texture map> launch_rviz:=<enable rviz> launch_bbox_to_mask:=<enable bbox to mask converter> mask_height:=<converted mask height> mask_width:=<converted mask width>
like is written, you need to change the <path to refine onnx model>, <path to refine model .plan>, <path to score onnx model>, <path to score model .plan>, <path to object mesh file>, <path to texture map>, <enable rviz>, <enable bbox to mask converter>, <converted mask height>, <converted mask width> with the right path.
Thanks for the quick response and the instructions. Actually, I replaced the placeholder path with the correct ones (but not putting them in this thread). The problem is that I don’t have the onnx model files after following the instructions on the website. It only has the etlt and trt engine.
Download the pre-trained FoundationPose models from NGC:
@Raffaello Thanks for checking but it seems that you missed the point of the issue.
After downloading the model files, there are NO onnx model files, which is REQUIRED when running the launch file of foundationpose. There are only etlt model files and trt engine files.
If you follow the tutorial to finish the model preparation, you should have the trt engines under isaac_ros_assets and you can pass the trt engine files to the launch file and ignore the onnx file.
For me it also happened. I have just tried to follow the tutorial and after unzipping there is no files such ‘model.onnx’ and I also receive errors:
[component_container_mt-1] Could not open file model.onnx
[component_container_mt-1] Could not open file model.onnx
[component_container_mt-1] 2024-06-24 16:08:58.393 ERROR ./gxf/extensions/tensor_rt/tensor_rt_inference.cpp@151: TRT ERROR: ModelImporter.cpp:733: Failed to parse ONNX model from file: model.onnx
[component_container_mt-1] 2024-06-24 16:08:58.393 ERROR ./gxf/extensions/tensor_rt/tensor_rt_inference.cpp@472: Failed to parse ONNX file model.onnx
[component_container_mt-1] 2024-06-24 16:08:58.502 ERROR ./gxf/extensions/tensor_rt/tensor_rt_inference.cpp@287: Failed to create engine plan for model model.onnx.
This demo does not require the ONNX file. If you follow the quickstart, the files are converted to .etlt files and loaded on the foundationpose launch file.