#include <drawable_submap.h>
Signals | |
void | RequestSucceeded () |
Public Member Functions | |
DrawableSubmap (const ::cartographer::mapping::SubmapId &submap_id,::rviz::DisplayContext *display_context, Ogre::SceneNode *map_node,::rviz::Property *submap_category, bool visible, const bool pose_axes_visible, float pose_axes_length, float pose_axes_radius) | |
DrawableSubmap (const DrawableSubmap &) | |
::cartographer::mapping::SubmapId | id () const |
bool | MaybeFetchTexture (ros::ServiceClient *client) |
DrawableSubmap & | operator= (const DrawableSubmap &) |
bool | QueryInProgress () |
void | set_pose_markers_visibility (const bool visibility) |
void | set_visibility (const bool visibility) |
void | SetAlpha (double current_tracking_z, float fade_out_distance_in_meters) |
void | SetSliceVisibility (size_t slice_index, bool visible) |
void | Update (const ::std_msgs::Header &header, const ::cartographer_ros_msgs::SubmapEntry &metadata) |
int | version () const |
bool | visibility () const |
~DrawableSubmap () override | |
Private Slots | |
void | TogglePoseMarkerVisibility () |
void | ToggleVisibility () |
void | UpdateSceneNode () |
Private Member Functions | |
::cartographer::transform::Rigid3d pose_ | GUARDED_BY (mutex_) |
std::chrono::milliseconds last_query_timestamp_ | GUARDED_BY (mutex_) |
bool query_in_progress_ | GUARDED_BY (mutex_) |
int metadata_version_ | GUARDED_BY (mutex_) |
std::unique_ptr <::cartographer::io::SubmapTextures > submap_textures_ | GUARDED_BY (mutex_) |
Private Attributes | |
float | current_alpha_ = 0.f |
::rviz::DisplayContext *const | display_context_ |
const ::cartographer::mapping::SubmapId | id_ |
absl::Mutex | mutex_ |
std::vector< std::unique_ptr < OgreSlice > > | ogre_slices_ |
::rviz::Axes | pose_axes_ |
bool | pose_axes_visible_ |
std::future< void > | rpc_request_future_ |
::rviz::MovableText | submap_id_text_ |
Ogre::SceneNode *const | submap_id_text_node_ |
Ogre::SceneNode *const | submap_node_ |
std::unique_ptr <::rviz::BoolProperty > | visibility_ |
Definition at line 46 of file drawable_submap.h.
cartographer_rviz::DrawableSubmap::DrawableSubmap | ( | const ::cartographer::mapping::SubmapId & | submap_id, |
::rviz::DisplayContext * | display_context, | ||
Ogre::SceneNode * | map_node, | ||
::rviz::Property * | submap_category, | ||
bool | visible, | ||
const bool | pose_axes_visible, | ||
float | pose_axes_length, | ||
float | pose_axes_radius | ||
) |
Definition at line 47 of file drawable_submap.cc.
cartographer_rviz::DrawableSubmap::~DrawableSubmap | ( | ) | [override] |
Definition at line 88 of file drawable_submap.cc.
::cartographer::transform::Rigid3d pose_ cartographer_rviz::DrawableSubmap::GUARDED_BY | ( | mutex_ | ) | [private] |
std::chrono::milliseconds last_query_timestamp_ cartographer_rviz::DrawableSubmap::GUARDED_BY | ( | mutex_ | ) | [private] |
bool query_in_progress_ cartographer_rviz::DrawableSubmap::GUARDED_BY | ( | mutex_ | ) | [private] |
int metadata_version_ cartographer_rviz::DrawableSubmap::GUARDED_BY | ( | mutex_ | ) | [private] |
std::unique_ptr<::cartographer::io::SubmapTextures> submap_textures_ cartographer_rviz::DrawableSubmap::GUARDED_BY | ( | mutex_ | ) | [private] |
::cartographer::mapping::SubmapId cartographer_rviz::DrawableSubmap::id | ( | ) | const [inline] |
Definition at line 81 of file drawable_submap.h.
bool cartographer_rviz::DrawableSubmap::MaybeFetchTexture | ( | ros::ServiceClient * | client | ) |
Definition at line 117 of file drawable_submap.cc.
DrawableSubmap& cartographer_rviz::DrawableSubmap::operator= | ( | const DrawableSubmap & | ) |
Definition at line 149 of file drawable_submap.cc.
void cartographer_rviz::DrawableSubmap::RequestSucceeded | ( | ) | [signal] |
void cartographer_rviz::DrawableSubmap::set_pose_markers_visibility | ( | const bool | visibility | ) | [inline] |
Definition at line 87 of file drawable_submap.h.
void cartographer_rviz::DrawableSubmap::set_visibility | ( | const bool | visibility | ) | [inline] |
Definition at line 84 of file drawable_submap.h.
void cartographer_rviz::DrawableSubmap::SetAlpha | ( | double | current_tracking_z, |
float | fade_out_distance_in_meters | ||
) |
Definition at line 154 of file drawable_submap.cc.
void cartographer_rviz::DrawableSubmap::SetSliceVisibility | ( | size_t | slice_index, |
bool | visible | ||
) |
Definition at line 175 of file drawable_submap.cc.
void cartographer_rviz::DrawableSubmap::TogglePoseMarkerVisibility | ( | ) | [private, slot] |
Definition at line 197 of file drawable_submap.cc.
void cartographer_rviz::DrawableSubmap::ToggleVisibility | ( | ) | [private, slot] |
Definition at line 190 of file drawable_submap.cc.
void cartographer_rviz::DrawableSubmap::Update | ( | const ::std_msgs::Header & | header, |
const ::cartographer_ros_msgs::SubmapEntry & | metadata | ||
) |
Definition at line 98 of file drawable_submap.cc.
void cartographer_rviz::DrawableSubmap::UpdateSceneNode | ( | ) | [private, slot] |
Definition at line 180 of file drawable_submap.cc.
int cartographer_rviz::DrawableSubmap::version | ( | ) | const [inline] |
Definition at line 82 of file drawable_submap.h.
bool cartographer_rviz::DrawableSubmap::visibility | ( | ) | const [inline] |
Definition at line 83 of file drawable_submap.h.
float cartographer_rviz::DrawableSubmap::current_alpha_ = 0.f [private] |
Definition at line 120 of file drawable_submap.h.
::rviz::DisplayContext* const cartographer_rviz::DrawableSubmap::display_context_ [private] |
Definition at line 106 of file drawable_submap.h.
const ::cartographer::mapping::SubmapId cartographer_rviz::DrawableSubmap::id_ [private] |
Definition at line 103 of file drawable_submap.h.
absl::Mutex cartographer_rviz::DrawableSubmap::mutex_ [private] |
Definition at line 105 of file drawable_submap.h.
std::vector<std::unique_ptr<OgreSlice> > cartographer_rviz::DrawableSubmap::ogre_slices_ [private] |
Definition at line 109 of file drawable_submap.h.
Definition at line 111 of file drawable_submap.h.
bool cartographer_rviz::DrawableSubmap::pose_axes_visible_ [private] |
Definition at line 112 of file drawable_submap.h.
std::future<void> cartographer_rviz::DrawableSubmap::rpc_request_future_ [private] |
Definition at line 117 of file drawable_submap.h.
Definition at line 113 of file drawable_submap.h.
Ogre::SceneNode* const cartographer_rviz::DrawableSubmap::submap_id_text_node_ [private] |
Definition at line 108 of file drawable_submap.h.
Ogre::SceneNode* const cartographer_rviz::DrawableSubmap::submap_node_ [private] |
Definition at line 107 of file drawable_submap.h.
std::unique_ptr<::rviz::BoolProperty> cartographer_rviz::DrawableSubmap::visibility_ [private] |
Definition at line 121 of file drawable_submap.h.