[Fawkes Git] branch/vmatare/mps-align: laser-lines_utils: simplify center() call

Victor Mataré matare at lih.rwth-aachen.de
Thu Apr 14 16:11:33 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 updated
  discards  48a35d7d5ba4f95e2d0b34487be94886f3124363 (commit)
        to  f5a95e9a498db4c4230084d0555de7a20bbb1d82 (commit)

This update added new revisions after undoing existing revisions.  That is
to say, the old revision is not a strict subset of the new revision.  This
situation occurs when you --force push a change and generate a repository
containing something like this:

 * -- * -- B -- O -- O -- O (48a35d7d5ba4f95e2d0b34487be94886f3124363)
            \
             N -- N -- N (f5a95e9a498db4c4230084d0555de7a20bbb1d82)

When this happens we assume that you've already had alert emails for all
of the O revisions, and so we here report only the revisions in the N
branch from the common base, B.

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

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- *Log* ---------------------------------------------------------------
commit f5a95e9a498db4c4230084d0555de7a20bbb1d82
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 16:11:17 2016 +0200

    laser-lines_utils: simplify center() call

http://git.fawkesrobotics.org/fawkes.git/commit/f5a95e9
http://trac.fawkesrobotics.org/changeset/f5a95e9

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


- *Summary* -----------------------------------------------------------
 src/lua/fawkes/laser-lines_utils.lua |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


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

- *commit* f5a95e9a498db4c4230084d0555de7a20bbb1d82 - - - - - - - - - -
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..d4bf132 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_1(1)},
+      {x = line:end_point_2(0), y = line:end_point_2(1)},
+      line:bearing()
+   )
+end
+




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


More information about the fawkes-commits mailing list