-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SDFormat importer hooks #453
Add SDFormat importer hooks #453
Conversation
Gems/ROS2/Code/Source/RobotImporter/SDFormat/ROS2SensorHooks.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2CameraSensorHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2CameraSensorHook.cpp
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2CameraSensorHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2ImuSensorHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2GNSSSensorHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2CameraSensorHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2ImuSensorHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2LidarSensorHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/ROS2SensorHooks.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/Camera/ROS2CameraSensorEditorComponent.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
f9ccf43
to
0a85c2e
Compare
This PR was rebased after #460 and #471 were merged. An additional check to ensure all required components are created in the entity was added. Moreover, the components are not duplicated anymore. This PR was tested using the implementation in https://github.com/jhanca-robotecai/o3de-extras/tree/test/jh/sdformat_hooks branch and attached UR10 model (SDFormat model with camera sensor added). ur10.zip |
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2CameraSensorHook.cpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
cameraSensor->HorizontalFov().Degree() * (cameraConfiguration.m_height / cameraConfiguration.m_width); | ||
if (cameraConfiguration.m_width != 0) | ||
{ | ||
cameraConfiguration.m_verticalFieldOfViewDeg = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should the value of m_verticalFieldOfViewDeg
be if the cameraConfiguration.m_width
is zero?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mathematically vertical FoV for image width equal to zero would be infinity. In the practical case camera with zero width (or height) makes no sense. The parameters (including FoV) are checked later in the pipeline - this test is added to avoid software crashes while importing robots with improper parameters.
Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
…remappings (#505) * First version of adding configurable prefix lookups and substitutions. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Tests/UrdfParserTest.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/SdfAssetBuilder/SdfAssetBuilderSettings.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Improved asset path resolution logic and unit tests. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Add SDFormat importer hooks (#453) Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * use PrimitiveAssets Gem to visualize primitives (#485) Use PrimitiveAssets Gem to visualize primitives --------- Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * Warehouse automation gem (#440) Created the warehouse automation gem, adjusted to review --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> * Lidar component refactor (#463) Lidar Refactor --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> * Added presentation of SDF messages (#491) * Added presentation of SDF messages --------- Signed-off-by: Michał Pełka <michalpelka@gmail.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> * Fix missing include. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Fix resolution of file:// prefix. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Change string to Path. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Changed PathResolver to get read in wholesale from setreg file. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback - changed file select dir to default to last-used file. Also changes file select dir to match anything typed into the text box. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Partial revert from path back to string. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Second half of path to string revert. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Added all Path Resolver options to setreg for visibility. Improved SetFindCallback to use the full set of path resolution options. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> --------- Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> Co-authored-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> Co-authored-by: Michał Pełka <michal.pelka@robotec.ai>
Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai>
…remappings (o3de#505) * First version of adding configurable prefix lookups and substitutions. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Tests/UrdfParserTest.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/SdfAssetBuilder/SdfAssetBuilderSettings.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Improved asset path resolution logic and unit tests. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Add SDFormat importer hooks (o3de#453) Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * use PrimitiveAssets Gem to visualize primitives (o3de#485) Use PrimitiveAssets Gem to visualize primitives --------- Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * Warehouse automation gem (o3de#440) Created the warehouse automation gem, adjusted to review --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> * Lidar component refactor (o3de#463) Lidar Refactor --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> * Added presentation of SDF messages (o3de#491) * Added presentation of SDF messages --------- Signed-off-by: Michał Pełka <michalpelka@gmail.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> * Fix missing include. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Fix resolution of file:// prefix. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Change string to Path. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Changed PathResolver to get read in wholesale from setreg file. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback - changed file select dir to default to last-used file. Also changes file select dir to match anything typed into the text box. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Partial revert from path back to string. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Second half of path to string revert. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Added all Path Resolver options to setreg for visibility. Improved SetFindCallback to use the full set of path resolution options. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> --------- Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> Co-authored-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> Co-authored-by: Michał Pełka <michal.pelka@robotec.ai>
…remappings (o3de#505) * First version of adding configurable prefix lookups and substitutions. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Tests/UrdfParserTest.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/SdfAssetBuilder/SdfAssetBuilderSettings.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Improved asset path resolution logic and unit tests. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Add SDFormat importer hooks (o3de#453) Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * use PrimitiveAssets Gem to visualize primitives (o3de#485) Use PrimitiveAssets Gem to visualize primitives --------- Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * Warehouse automation gem (o3de#440) Created the warehouse automation gem, adjusted to review --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> * Lidar component refactor (o3de#463) Lidar Refactor --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> * Added presentation of SDF messages (o3de#491) * Added presentation of SDF messages --------- Signed-off-by: Michał Pełka <michalpelka@gmail.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> * Fix missing include. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Fix resolution of file:// prefix. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Change string to Path. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Changed PathResolver to get read in wholesale from setreg file. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback - changed file select dir to default to last-used file. Also changes file select dir to match anything typed into the text box. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Partial revert from path back to string. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Second half of path to string revert. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Added all Path Resolver options to setreg for visibility. Improved SetFindCallback to use the full set of path resolution options. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> --------- Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> Co-authored-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> Co-authored-by: Michał Pełka <michal.pelka@robotec.ai>
Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
…remappings (o3de#505) * First version of adding configurable prefix lookups and substitutions. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Tests/UrdfParserTest.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/SdfAssetBuilder/SdfAssetBuilderSettings.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Improved asset path resolution logic and unit tests. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Add SDFormat importer hooks (o3de#453) Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * use PrimitiveAssets Gem to visualize primitives (o3de#485) Use PrimitiveAssets Gem to visualize primitives --------- Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * Warehouse automation gem (o3de#440) Created the warehouse automation gem, adjusted to review --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> * Lidar component refactor (o3de#463) Lidar Refactor --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> * Added presentation of SDF messages (o3de#491) * Added presentation of SDF messages --------- Signed-off-by: Michał Pełka <michalpelka@gmail.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> * Fix missing include. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Fix resolution of file:// prefix. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Change string to Path. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Changed PathResolver to get read in wholesale from setreg file. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback - changed file select dir to default to last-used file. Also changes file select dir to match anything typed into the text box. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Partial revert from path back to string. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Second half of path to string revert. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Added all Path Resolver options to setreg for visibility. Improved SetFindCallback to use the full set of path resolution options. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> --------- Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> Co-authored-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> Co-authored-by: Michał Pełka <michal.pelka@robotec.ai> Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
…remappings (o3de#505) * First version of adding configurable prefix lookups and substitutions. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Tests/UrdfParserTest.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/SdfAssetBuilder/SdfAssetBuilderSettings.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Improved asset path resolution logic and unit tests. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Add SDFormat importer hooks (o3de#453) Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * use PrimitiveAssets Gem to visualize primitives (o3de#485) Use PrimitiveAssets Gem to visualize primitives --------- Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * Warehouse automation gem (o3de#440) Created the warehouse automation gem, adjusted to review --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> * Lidar component refactor (o3de#463) Lidar Refactor --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> * Added presentation of SDF messages (o3de#491) * Added presentation of SDF messages --------- Signed-off-by: Michał Pełka <michalpelka@gmail.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> * Fix missing include. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Fix resolution of file:// prefix. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Change string to Path. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Changed PathResolver to get read in wholesale from setreg file. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback - changed file select dir to default to last-used file. Also changes file select dir to match anything typed into the text box. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Partial revert from path back to string. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Second half of path to string revert. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Added all Path Resolver options to setreg for visibility. Improved SetFindCallback to use the full set of path resolution options. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> --------- Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> Co-authored-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> Co-authored-by: Michał Pełka <michal.pelka@robotec.ai> Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
…remappings (#505) * First version of adding configurable prefix lookups and substitutions. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Tests/UrdfParserTest.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/SdfAssetBuilder/SdfAssetBuilderSettings.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Improved asset path resolution logic and unit tests. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Add SDFormat importer hooks (#453) Add sensors SDF importer hooks Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * use PrimitiveAssets Gem to visualize primitives (#485) Use PrimitiveAssets Gem to visualize primitives --------- Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> * Warehouse automation gem (#440) Created the warehouse automation gem, adjusted to review --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> * Lidar component refactor (#463) Lidar Refactor --------- Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> * Added presentation of SDF messages (#491) * Added presentation of SDF messages --------- Signed-off-by: Michał Pełka <michalpelka@gmail.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> * Fix missing include. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Fix resolution of file:// prefix. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Change string to Path. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Changed PathResolver to get read in wholesale from setreg file. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback - changed file select dir to default to last-used file. Also changes file select dir to match anything typed into the text box. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.h Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Update Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * PR feedback Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Partial revert from path back to string. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Second half of path to string revert. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> * Added all Path Resolver options to setreg for visibility. Improved SetFindCallback to use the full set of path resolution options. Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> --------- Signed-off-by: Mike Balfour <82224783+mbalfour-amzn@users.noreply.github.com> Signed-off-by: Jan Hanca <jan.hanca@robotec.ai> Signed-off-by: Antoni Puch <antoni.puch@robotec.ai> Signed-off-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: lumberyard-employee-dm <56135373+lumberyard-employee-dm@users.noreply.github.com> Co-authored-by: Jan Hanca <134940295+jhanca-robotecai@users.noreply.github.com> Co-authored-by: Antoni-Robotec <138497503+Antoni-Robotec@users.noreply.github.com> Co-authored-by: Adam Dąbrowski <adam.dabrowski@robotec.ai> Co-authored-by: Michał Pełka <michal.pelka@robotec.ai> Signed-off-by: Michał Pełka <michal.pelka@robotec.ai>
This change adds SDFormat importer hooks for
imu
: mapped toROS2ImuSensorComponent
lidar
: mapped toROS2LidarSensorComponent
navsat
: mapped toROS2GNSSSensor
Some modifications in tests to verify the change are included.
Finally, this change applies clang-format to
LidarTemplateUtils.cpp
file, which was skipped previously.