-
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
fix(follow_trajectory_action): fix cooperation with Autoware, fix speed limits #1163
fix(follow_trajectory_action): fix cooperation with Autoware, fix speed limits #1163
Conversation
…position to lanelet
…speed, max_speed to be set
…lowTrajectoryAction - VehicleEntity
simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp
Outdated
Show resolved
Hide resolved
simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp
Outdated
Show resolved
Hide resolved
simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp
Outdated
Show resolved
Hide resolved
simulation/simulation_interface/proto/simulation_api_schema.proto
Outdated
Show resolved
Hide resolved
simulation/simulation_interface/include/simulation_interface/zmq_multi_client.hpp
Outdated
Show resolved
Hide resolved
simulation/traffic_simulator/include/traffic_simulator/entity/ego_entity.hpp
Outdated
Show resolved
Hide resolved
simulation/traffic_simulator/include/traffic_simulator/entity/ego_entity.hpp
Outdated
Show resolved
Hide resolved
simulation/simple_sensor_simulator/src/vehicle_simulation/ego_entity_simulation.cpp
Outdated
Show resolved
Hide resolved
@yamacir-kit |
…utoware_cooperation
@yamacir-kit
|
…low_trajectory_action_autoware_cooperation
@yamacir-kit
|
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.
@dmoszynski
Please resolve the conflict.
…low_trajectory_action_autoware_cooperation
@yamacir-kit |
Description
Abstract
Ego moved too fast (did not respect the limits) in the case of the 2 test scenarios shared on jira RJD-834.
maxSpeed
controller parameter toFollowTrajectoryAction
- when action is used in EgoEntitySimulation as an Autoware "disturbance".FollowTrajectoryAction
does not take into account the speed limits fromlanelet2
.Changes related to this issue:
Moved execution of
FollowTrajectoryAction
fromEgoEntitySimulation
toEgoVehicle
- added a flag to activate action update. Also ensured that Ego status is overwritten only for this action.Added ability to setup
FollowTrajectoryAction
(used in cooperation with Autoware) parameters via requestSpeedChange and setVelocityLimit inEgoVehicle
Added setting of
lanelet_pose
toFollowTrajectoryAction
update - without this, theEntityStatus
aftermakeUpdatedStatus
hadlanelet_pose_valid = false
which did not allowlanelet2
limits to be processed.Note:
matching_distance
equal to 3.0 is necessary to ensure that thelanelet2
position updates successfully for the scenarios from this task.Added setup of waypoints in
route_planner
when usingFollowTrajectoryAction
- this is necessary in order to obtain correctlanelet2
limits usingroute_lanelets
VehicleEntity::requestFollowTrajectory
,route_lanelets
are used here.Added consideration of current linear speed in the
FollowTrajectoryAction
in the behavior tree pedestrian_tree, vehicle_tree and in ego_entity_simulation - Iftarget_speed
is set its value is used, if it is not set then the value of the current linear speed is used.lanelet2
limit is completely ignored because of usingFollowTrajectoryAction
outside lanelet2.Background
Changes unrelated to the issue:
Added to
FollowTrajectoryAction
the case when a waypoint is passed in a stepinnerProduct < 0.0
- also improved the calculation ofcurrent_velocity
.Added small improvement to
FollowTrajectoryAction
- part without waypoint arrival time follow_waypoint_controller.Details
Video showing the run of a
FollowTrajectoryAction
for Ego controlled by Autoware.target_speed
is taken as the current linear speed at the time when the action is triggered.video_1280.mp4
Destructive Changes
target_speed
is not set, its value is taken as the current speed, previously it was the maximum speed from BehaviorParameter (default 50 m/s).BehaviorParameter
.