Skip to content
Snippets Groups Projects
Commit d93994d7 authored by Islam Abed's avatar Islam Abed
Browse files

Address review comments for FindRelativeLanePoseAtDistanceFrom

parent 2c45f395
No related branches found
No related tags found
1 merge request!39Add FindRelativeLanePoseDistanceFrom in query service interface
......@@ -60,15 +60,14 @@ public:
///@return Pose that is at the given distance from reference_pose_on_lane in the specified direction. The new orientation is parallel to the lane orientation at the target position.
virtual std::optional<Pose> FindLanePoseAtDistanceFrom(const Pose& reference_pose_on_lane, units::length::meter_t distance, Direction direction) const = 0;
/// @brief Calculate a new pose which is at certain distance in a relative lane from the reference_pose_on_lane.
///
///@param reference_pose_on_lane Starting position. Must be on a lane.
///@param relative_target_lane The lane where the new pose should be placed on it.
///@param distance Longitudinal distance the new pose should be placed, it should be ahead from the the reference pose position
///@param lateral_offset Lateral offset to the target lane
///@param relative_target_lane Shift of the target position in number of lanes relative to the lane where the reference pose is located. Positive to the left, negative to the right.
///@param distance The longitudinal distance along the centerline of the lane closest to the reference pose. The orientation of the reference pose is used to determine the direction. Positive distance means aligned with the positive x direction of the local coordinate system defined by the pose.
///@param lateral_offset Lateral offset to the target lane
///@return Pose that is at the given distance from reference_pose_on_lane in a relative lane. The new orientation is parallel to the lane orientation at the target position.
std::optional<Pose> FindRelativeLanePoseDistanceFrom(const Pose& reference_pose_on_lane, short relative_target_lane, units::length::meter_t distance, units::length::meter_t lateral_offset) const = 0;
virtual std::optional<Pose> FindRelativeLanePoseAtDistanceFrom(const Pose& reference_pose_on_lane, int relative_target_lane, units::length::meter_t distance, units::length::meter_t lateral_offset) const = 0;
};
} // namespace mantle_api
......
......@@ -141,7 +141,7 @@ public:
Pose pose{};
return pose;
}
std::optional<Pose> FindRelativeLanePoseDistanceFrom(const Pose& reference_pose_on_lane, short relative_target_lane, units::length::meter_t distance, units::length::meter_t lateral_offset) const override
std::optional<Pose> FindRelativeLanePoseAtDistanceFrom(const Pose& reference_pose_on_lane, int relative_target_lane, units::length::meter_t distance, units::length::meter_t lateral_offset) const override
{
std::ignore = reference_pose_on_lane;
std::ignore = relative_target_lane;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment