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

Set pose action for the driving domain #109

Closed
wants to merge 0 commits into from
Closed

Set pose action for the driving domain #109

wants to merge 0 commits into from

Conversation

abol-karimi
Copy link

No description provided.

@Eric-Vin
Copy link
Collaborator

Eric-Vin commented Sep 8, 2023

Hi Abel, that test that failed is an unfortunate edge case in our roads library that I don't think has anything to do with your changes. I'll rerun the test suite and see if it goes away.

Copy link
Collaborator

@Eric-Vin Eric-Vin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me and fill the gap we currently have since we already support setPosition, setVelocity, etc...

@dfremont
Copy link
Collaborator

When adding a new action to the driving domain, you need to add implementations to all simulator interfaces which support that domain. Looks like CARLA and LGSVL are missing in this PR.

@abol-karimi
Copy link
Author

When adding a new action to the driving domain, you need to add implementations to all simulator interfaces which support that domain. Looks like CARLA and LGSVL are missing in this PR.

Since Carla already supports mutating the heading via set-transform, how about we remove the set-heading action from the driving domain?

@dfremont
Copy link
Collaborator

I think it would be better to add it to the driving domain, since it makes sense for all simulators; I think SetTransformAction was meant as a temporary CARLA-specific hack (really we should provide something like it in the driving domain, but that can be a later PR). I guess since we've deprecated LGSVL you'd just have to implement setHeading for CarlaActor, which should be a simple matter of adapting the code in SetTransformAction.

@abol-karimi
Copy link
Author

Sounds good, I'll update my PR.

@abol-karimi
Copy link
Author

Since Carla does not have a dedicated setter for actor rotations, in a SetHeadingAction we would need to set the location as well too. So I propose that instead, we bring the SetTransformAction to the driving model, but with a different name, SetPoseAction, since pose is a standard term in robotics for combining position and orientation. If you agree, I'll write up the code.

@abol-karimi abol-karimi changed the title Set heading action for the Newtonian simulator actors Set pose action for the driving domain Sep 27, 2023
@abol-karimi
Copy link
Author

I defined the SetPoseAction in the driving domain, together with its newtonian and carla implementations, but assuming that 2dMode is active and the heading argument is a float. If we want to allow the driving domain to have the option of running in 3D mode, I'm not sure how to best design/implement it.

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.

3 participants