From: Jiri Vlasak Date: Tue, 20 Jul 2021 10:58:36 +0000 (+0200) Subject: Add pose range constructor X-Git-Tag: v0.6.0~3^2~3 X-Git-Url: http://rtime.felk.cvut.cz/gitweb/hubacji1/bcar.git/commitdiff_plain/90b43d4539fb17d137cbdf5fd5bd0931e5ad22af?ds=sidebyside Add pose range constructor --- diff --git a/incl/bcar.hh b/incl/bcar.hh index 22e57d4..357d219 100644 --- a/incl/bcar.hh +++ b/incl/bcar.hh @@ -161,6 +161,7 @@ private: void set_xyh(); public: PoseRange(Pose bp, Pose ep); + PoseRange(double x, double y, double b, double e); Pose bp() const; Pose ep() const; diff --git a/src/bcar.cc b/src/bcar.cc index d64f27f..673ec19 100644 --- a/src/bcar.cc +++ b/src/bcar.cc @@ -338,6 +338,11 @@ PoseRange::PoseRange(Pose bp, Pose ep) : bp_(bp), ep_(ep) } } +PoseRange::PoseRange(double x, double y, double b, double e) + : PoseRange(Pose(x, y, b), Pose(x, y, e)) +{ +} + Pose PoseRange::bp() const {