-
Notifications
You must be signed in to change notification settings - Fork 60
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
Feature/respawn entity #1198
Feature/respawn entity #1198
Conversation
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Checklist for reviewers ☑️All references to "You" in the following text refer to the code reviewer.
|
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
…re_universe Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
…e used in the initial_pose_adaptor Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
Signed-off-by: Paweł Lech <[email protected]>
@yamacir-kit
I'm also thinking whether it would be better to develop the Let us know if this approach (of the original author) is as expected? |
@dmoszynski The
The simulation start is simultaneous with the engage, but respawn is an event during the simulation, so it should be accompanied by a simulation time elapse. |
I understand this completely, I'm asking because the current solution is not of my invention and is a bit specific - does not cause elapsed time, that is, it blocks Although I must admit that now I've concluded that this check What do you think about this idea - commit (video below)? Unfortunately, this way we don't know if the "respawn" was successful/unsuccessful - we don't have a check on the
From this I conclude that the check VideoVideo after change commit is added: vokoscreenNG-2024-04-04_09-20-18.mp4 |
@dmoszynski The Therefore, there should be no problem to run I have not been able to check the video, but for the reasons above, the commit should be fine. |
external/concealer/src/field_operator_application_for_autoware_universe.cpp
Outdated
Show resolved
Hide resolved
external/concealer/include/concealer/field_operator_application_for_autoware_universe.hpp
Outdated
Show resolved
Hide resolved
simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp
Outdated
Show resolved
Hide resolved
simulation/traffic_simulator/include/traffic_simulator/api/api.hpp
Outdated
Show resolved
Hide resolved
simulation/traffic_simulator/include/traffic_simulator/entity/entity_manager.hpp
Outdated
Show resolved
Hide resolved
simulation/traffic_simulator/include/traffic_simulator/entity/entity_base.hpp
Outdated
Show resolved
Hide resolved
@yamacir-kit
Taking a look at the commit with the changes I suppose that it is not necessary to re-run the regression tests - let me know what you think about it. |
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.
There were still a few things that bothered me and I'd like to fix them before merging.
There is no need to do another regression test on this change.
external/concealer/include/concealer/field_operator_application_for_autoware_universe.hpp
Outdated
Show resolved
Hide resolved
simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp
Outdated
Show resolved
Hide resolved
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.
:)
Description
Abstract
This PR introduces the possibility of changing the position of ego manually using RViz GUI during the simulation in cpp mock scenarios.
Example scenario presenting the feature is included.
Background
https://tier4.atlassian.net/browse/RJD-933)](https://tier4.atlassian.net/browse/RJD-933
Details
API::respawn
method is implemented in this PR.API::respawn
function:FieldOperatorApplicationFor<AutowareUniverse>::clearRoute()
method was implemented which triggers/api/routing/clear_route
serviceEntityBase::getVehicleParameters
pure virtual method was implemented. For the entities other than VehicleEntity calling this method causes an exception.getParameterFromExistingNode
was implemented and used inEgoEntitySimulation::makeSimulationModel
instead ofgetParameter
function.getParameter
function insideEgoEntitySimulation::makeSimulationModel
were very time consuming (because of the need to construct and deconstruct multiple ROS2 nodes).respawn_ego.cpp
scenario is implemented to present the future/initialpose
topic is implementedAPI::respawn
passing newly received position and the initial ego goal as the arguments/initialpose
topic inside this scenario is just an exampleAPI::respawn
call/initialpose
topic makes it possible to use RViz GUI “2d Pose Estimate” built in pluginKnown Limitations
Currently only respawning of the
ego
entity is supported. Passing any other entity name to the function ends up with an exception.