[Fawkes Git] branch/vmatare/mps-align: created (0.5.0-3082-g48a35d7)

Victor Mataré matare at lih.rwth-aachen.de
Thu Apr 14 12:00:35 CEST 2016


Changes have been pushed for the project "Fawkes Robotics Software Framework".

Gitweb: http://git.fawkesrobotics.org/fawkes.git
Trac:   http://trac.fawkesrobotics.org

The branch, vmatare/mps-align has been created
        at  48a35d7d5ba4f95e2d0b34487be94886f3124363 (commit)

http://git.fawkesrobotics.org/fawkes.git/vmatare/mps-align

- *Log* ---------------------------------------------------------------
commit 48a35d7d5ba4f95e2d0b34487be94886f3124363
Author:     Victor Mataré <matare at lih.rwth-aachen.de>
AuthorDate: Thu Apr 14 12:00:15 2016 +0200
Commit:     Victor Mataré <matare at lih.rwth-aachen.de>
CommitDate: Thu Apr 14 12:00:15 2016 +0200

    laser-lines_utils: simplify center() call

http://git.fawkesrobotics.org/fawkes.git/commit/48a35d7
http://trac.fawkesrobotics.org/changeset/48a35d7

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


- *Summary* -----------------------------------------------------------


- *Diffs* -------------------------------------------------------------

- *commit* 48a35d7d5ba4f95e2d0b34487be94886f3124363 - - - - - - - - - -
Author:  Victor Mataré <matare at lih.rwth-aachen.de>
Date:    Thu Apr 14 12:00:15 2016 +0200
Subject: laser-lines_utils: simplify center() call

 src/lua/fawkes/laser-lines_utils.lua |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

_Diff for modified files_:
diff --git a/src/lua/fawkes/laser-lines_utils.lua b/src/lua/fawkes/laser-lines_utils.lua
index a409e41..1996eb0 100644
--- a/src/lua/fawkes/laser-lines_utils.lua
+++ b/src/lua/fawkes/laser-lines_utils.lua
@@ -52,3 +52,12 @@ function point_in_front(center, distance)
 
   return {x=x, y=y, ori=ori}
 end
+
+function center(line)
+   return laser_lines_center(
+      {x = line:end_point_1(0), y = line:end_point_2(1)},
+      {x = line:end_point_2(0), y = line:end_point_2(2)},
+      line:bearing()
+   )
+end
+




-- 
Fawkes Robotics Framework                 http://www.fawkesrobotics.org


More information about the fawkes-commits mailing list