Skip to content
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

Merged
merged 18 commits into from
Jan 11, 2024

Conversation

jhanca-robotecai
Copy link
Contributor

@jhanca-robotecai jhanca-robotecai commented Nov 13, 2023

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).

@jhanca-robotecai
Copy link
Contributor Author

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.

Copy link
Contributor

@adamdbrw adamdbrw left a 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.

@michalpelka michalpelka requested a review from a team December 7, 2023 14:08
Copy link
Contributor

@adamdbrw adamdbrw left a 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).

@michalpelka
Copy link
Contributor

Tested against development.

@jhanca-robotecai
Copy link
Contributor Author

Rebased and force-pushed on top of development to rerun and fix Jenkins output.

Signed-off-by: Jan Hanca <[email protected]>
@jhanca-robotecai
Copy link
Contributor Author

Rebased and force-pushed again after #641 was merged

@michalpelka michalpelka merged commit 3f98b47 into o3de:development Jan 11, 2024
2 checks passed
@jhanca-robotecai jhanca-robotecai deleted the jh/model_hooks branch January 11, 2024 11:42
jhanca-robotecai added a commit to jhanca-robotecai/o3de-extras that referenced this pull request Jan 11, 2024
michalpelka pushed a commit that referenced this pull request Jan 15, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RobotImporter incorrectly adding Robot Control component to non-robot imports
5 participants