-
Notifications
You must be signed in to change notification settings - Fork 65
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 model plugins #609
Add SDFormat model plugins #609
Conversation
63fefc6
to
dd08a22
Compare
The current version requires changes in o3de, please see o3de/o3de#17124 It works with both articulations and joints. Note, that the torque in case of articulations is too high and the imported samples fly away. This can be changed e.g. by modifying the weight of a base_link. |
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.
Good work! I would like this feature to be merged once documentation PR (at least a draft) is submitted about hooks and their registration mechanism. This would help to review the PR.
The documentation can be based on RFC text.
Gems/ROS2/Code/Include/ROS2/RobotImporter/SDFormatModelPluginImporterHook.h
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/ROS2RobotImporterEditorSystemComponent.cpp
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/ROS2SDFormatHooksUtils.h
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/Utils/RobotImporterUtils.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/URDF/ArticulationsMaker.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/ROS2ModelPluginHooks.h
Outdated
Show resolved
Hide resolved
8c1e80b
to
7f1ce15
Compare
Gems/ROS2/Code/Source/RobotImporter/SDFormat/ROS2SDFormatHooksUtils.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/ROS2RobotImporterEditorSystemComponent.h
Outdated
Show resolved
Hide resolved
b3d22c1
to
8d43da0
Compare
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.
Valuable contribution, some comments (rather minor).
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Outdated
Show resolved
Hide resolved
Gems/ROS2/Code/Source/VehicleDynamics/ModelLimits/SkidSteeringModelLimits.cpp
Outdated
Show resolved
Hide resolved
Tested against development. |
88bfa9c
to
d7f4f70
Compare
Rebased and force-pushed on top of |
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
Signed-off-by: Jan Hanca <[email protected]>
d7f4f70
to
979d457
Compare
Rebased and force-pushed again after #641 was merged |
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Show resolved
Hide resolved
Gems/ROS2/Code/Source/RobotImporter/SDFormat/Hooks/ROS2SkidSteeringModelHook.cpp
Show resolved
Hide resolved
Gems/ROS2/Code/Source/VehicleDynamics/ModelComponents/SkidSteeringModelComponent.cpp
Show resolved
Hide resolved
Signed-off-by: Jan Hanca <[email protected]>
* Fix SkidSteeringDriveModel * code review: fix names and comments * code review fixes from #609 * fix Skid import hook after changes in Skid model --------- Signed-off-by: Jan Hanca <[email protected]>
libgazebo_ros_skid_steer_drive.so
andlibgazebo_ros_diff_drive
The code was tested using modified ROSBot urdf files. The only modification was adding the plugin itself based on libgazebo_ros_skid_steer_drive docs and libgazebo_ros_diff_drive docs. Please find the robots attached.
The attached robots test_models.zip require one change after import: setting "Use motor" toggle to true in all used wheels. This part will be fixed in the next PR.Please note, that ROS topic names are not parsed at this point, therefore the robots can be controlled via
/base_link/default_topic
topic. This will be fixed in another PR (topic names are not parsed in Sensor importer either).