Commit 02330a92 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Made some functions const.

parent 7534e38d
......@@ -77,8 +77,8 @@ class COpendriveLane
TOpendriveWorldPose get_start_pose(void) const;
TOpendriveWorldPose get_end_pose(void) const;
double get_length(void) const;
TOpendriveWorldPose get_pose_at(double length);
double get_curvature_at(double length);
TOpendriveWorldPose get_pose_at(double length) const;
double get_curvature_at(double length) const;
TOpendriveLocalPose transform_to_local_pose(TOpendriveTrackPose &track) const;
TOpendriveWorldPose transform_to_world_pose(TOpendriveTrackPose &track) const;
const COpendriveRoadNode &get_closest_node(TOpendriveWorldPose &pose,double &distance,double angle_tol=0.1) const;
......
......@@ -711,7 +711,7 @@ double COpendriveLane::get_length(void) const
return length;
}
TOpendriveWorldPose COpendriveLane::get_pose_at(double length)
TOpendriveWorldPose COpendriveLane::get_pose_at(double length) const
{
TOpendriveWorldPose world_pose={0};
......@@ -735,7 +735,7 @@ TOpendriveWorldPose COpendriveLane::get_pose_at(double length)
return world_pose;
}
double COpendriveLane::get_curvature_at(double length)
double COpendriveLane::get_curvature_at(double length) const
{
double curvature;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment