[Fawkes Git] branch/jrothe/navgraph-highlight-machines: created (0.5.0-3082-g51ed8c0)

Johannes Rothe johannes.rothe at rwth-aachen.de
Thu Aug 25 19:13:39 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, jrothe/navgraph-highlight-machines has been created
        at  51ed8c03eea4fc785397ac174e1b4085d2c0c3de (commit)

http://git.fawkesrobotics.org/fawkes.git/jrothe/navgraph-highlight-machines

- *Log* ---------------------------------------------------------------
commit 51ed8c03eea4fc785397ac174e1b4085d2c0c3de
Author:     Johannes Rothe <johannes.rothe at rwth-aachen.de>
AuthorDate: Thu Aug 25 19:11:22 2016 +0200
Commit:     Johannes Rothe <johannes.rothe at rwth-aachen.de>
CommitDate: Thu Aug 25 19:11:22 2016 +0200

    navgraph: Change visualization colors to highlight machines
    
    It was problematic reading the text of machine in- and outputs.
    This commit changes the text color of machine points to red, to
    find them easier in the visualization.

http://git.fawkesrobotics.org/fawkes.git/commit/51ed8c0
http://trac.fawkesrobotics.org/changeset/51ed8c0

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


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


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

- *commit* 51ed8c03eea4fc785397ac174e1b4085d2c0c3de - - - - - - - - - -
Author:  Johannes Rothe <johannes.rothe at rwth-aachen.de>
Date:    Thu Aug 25 19:11:22 2016 +0200
Subject: navgraph: Change visualization colors to highlight machines

 src/plugins/navgraph/visualization_thread.cpp |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

_Diff for modified files_:
diff --git a/src/plugins/navgraph/visualization_thread.cpp b/src/plugins/navgraph/visualization_thread.cpp
index b80e033..446c24c 100644
--- a/src/plugins/navgraph/visualization_thread.cpp
+++ b/src/plugins/navgraph/visualization_thread.cpp
@@ -444,9 +444,16 @@ NavGraphVisualizationThread::publish()
     text.pose.orientation.w = 1.;
     text.scale.z = 0.15; // 15cm high
     text.color.r = text.color.g = text.color.b = 1.0f;
-    text.color.a = 1.0;
+    text.color.a = 0.7;
     text.lifetime = ros::Duration(0, 0);
     text.text = nodes[i].name();
+    if (nodes[i].has_property("tag_input") || nodes[i].has_property("orientation")) {
+      //Highlight important points of the machines
+      text.color.r = 1.0f;
+      text.color.g = 0.0f;
+      text.color.b = 0.0f;
+      text.color.a = 1.0f;
+    }
     m.markers.push_back(text);
 
   }




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


More information about the fawkes-commits mailing list