mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-07 02:07:45 +08:00
Merged master to ros2. ros2: Uniformized qos of all subscribers and publishers.
This commit is contained in:
@@ -49,6 +49,8 @@ MapGraphDisplay::MapGraphDisplay()
|
||||
"Color to draw global loop closure links.", this );
|
||||
color_local_property_ = new rviz_common::properties::ColorProperty( "Local loop closure", Qt::yellow,
|
||||
"Color to draw local loop closure links.", this );
|
||||
color_landmark_property_ = new rviz_common::properties::ColorProperty( "Landmark", Qt::darkGreen,
|
||||
"Color to draw landmark links.", this );
|
||||
color_user_property_ = new rviz_common::properties::ColorProperty( "User", Qt::red,
|
||||
"Color to draw user links.", this );
|
||||
color_virtual_property_ = new rviz_common::properties::ColorProperty( "Virtual", Qt::magenta,
|
||||
@@ -148,6 +150,10 @@ void MapGraphDisplay::processMessage( const rtabmap_ros::msg::MapGraph::ConstSha
|
||||
{
|
||||
color = color_local_property_->getOgreColor();
|
||||
}
|
||||
else if(iter->second.type() == rtabmap::Link::kLandmark)
|
||||
{
|
||||
color = color_landmark_property_->getOgreColor();
|
||||
}
|
||||
else
|
||||
{
|
||||
color = color_global_property_->getOgreColor();
|
||||
|
||||
Reference in New Issue
Block a user