[Fawkes Git] branch/vmatare/motor-freeze: robotino: log change in TransRotMessage sender

Tim Niemueller niemueller at kbsg.rwth-aachen.de
Mon Aug 29 16:52:19 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/motor-freeze has been updated
  discards  6c6582942bdfc0201b496d0bd6c7ea8a55f76292 (commit)
  discards  c967617508a72e4e12beabf52808af13897fc071 (commit)
        to  cbe35a04a620ee8647a034d421a74384e08ec544 (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 (6c6582942bdfc0201b496d0bd6c7ea8a55f76292)
            \
             N -- N -- N (cbe35a04a620ee8647a034d421a74384e08ec544)

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/motor-freeze

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 cbe35a04a620ee8647a034d421a74384e08ec544
Author:     Victor Mataré <matare at lih.rwth-aachen.de>
AuthorDate: Wed Jun 29 21:37:26 2016 +0200
Commit:     Tim Niemueller <niemueller at kbsg.rwth-aachen.de>
CommitDate: Mon Aug 29 16:51:45 2016 +0200

    robotino: log change in TransRotMessage sender

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

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


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


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

- *commit* cbe35a04a620ee8647a034d421a74384e08ec544 - - - - - - - - - -
Author:  Victor Mataré <matare at lih.rwth-aachen.de>
Date:    Wed Jun 29 21:37:26 2016 +0200
Subject: robotino: log change in TransRotMessage sender

 src/plugins/robotino/act_thread.cpp |    5 +++++
 src/plugins/robotino/act_thread.h   |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

_Diff for modified files_:
diff --git a/src/plugins/robotino/act_thread.cpp b/src/plugins/robotino/act_thread.cpp
index 05228a9..7cbf189 100644
--- a/src/plugins/robotino/act_thread.cpp
+++ b/src/plugins/robotino/act_thread.cpp
@@ -186,6 +186,11 @@ RobotinoActThread::loop()
 
 			set_des_vel = true;
 			msg_zero_vel_ = (des_vx_ == 0.0 && des_vy_ == 0.0 && des_omega_ == 0.0);
+
+			if (msg->sender_thread_name() != last_transrot_sender_) {
+			  last_transrot_sender_ = msg->sender_thread_name();
+			  logger->log_info(name(), "Sender of TransRotMessage changed to %s", last_transrot_sender_.c_str());
+			}
 		}
 
 		else if (motor_if_->msgq_first_is<MotorInterface::ResetOdometryMessage>())
diff --git a/src/plugins/robotino/act_thread.h b/src/plugins/robotino/act_thread.h
index 64dd26e..4c9a92d 100644
--- a/src/plugins/robotino/act_thread.h
+++ b/src/plugins/robotino/act_thread.h
@@ -119,6 +119,7 @@ class RobotinoActThread
 	float                           des_vx_;
 	float                           des_vy_;
 	float                           des_omega_;
+	std::string                     last_transrot_sender_;
 };
 
 




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


More information about the fawkes-commits mailing list