mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
MapGraph rviz: added landmark color
This commit is contained in:
@@ -59,6 +59,8 @@ MapGraphDisplay::MapGraphDisplay()
|
||||
"Color to draw global loop closure links.", this );
|
||||
color_local_property_ = new rviz::ColorProperty( "Local loop closure", Qt::yellow,
|
||||
"Color to draw local loop closure links.", this );
|
||||
color_landmark_property_ = new rviz::ColorProperty( "Landmark", Qt::darkGreen,
|
||||
"Color to draw landmark links.", this );
|
||||
color_user_property_ = new rviz::ColorProperty( "User", Qt::red,
|
||||
"Color to draw user links.", this );
|
||||
color_virtual_property_ = new rviz::ColorProperty( "Virtual", Qt::magenta,
|
||||
@@ -157,6 +159,10 @@ void MapGraphDisplay::processMessage( const rtabmap_ros::MapGraph::ConstPtr& msg
|
||||
{
|
||||
color = color_local_property_->getOgreColor();
|
||||
}
|
||||
else if(iter->second.type() == rtabmap::Link::kLandmark)
|
||||
{
|
||||
color = color_landmark_property_->getOgreColor();
|
||||
}
|
||||
else
|
||||
{
|
||||
color = color_global_property_->getOgreColor();
|
||||
|
||||
@@ -79,6 +79,7 @@ private:
|
||||
ColorProperty* color_neighbor_merged_property_;
|
||||
ColorProperty* color_global_property_;
|
||||
ColorProperty* color_local_property_;
|
||||
ColorProperty* color_landmark_property_;
|
||||
ColorProperty* color_user_property_;
|
||||
ColorProperty* color_virtual_property_;
|
||||
FloatProperty* alpha_property_;
|
||||
|
||||
Reference in New Issue
Block a user