NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
localization_coverage_display.h
Go to the documentation of this file.
1
/* Copyright (c) 2017, United States Government, as represented by the
2
* Administrator of the National Aeronautics and Space Administration.
3
*
4
* All rights reserved.
5
*
6
* The Astrobee platform is licensed under the Apache License, Version 2.0
7
* (the "License"); you may not use this file except in compliance with the
8
* License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
* License for the specific language governing permissions and limitations
16
* under the License.
17
*/
18
19
// Header file must go in src directory for Qt/Rviz plugin
20
#ifndef LOCALIZATION_RVIZ_PLUGINS_LOCALIZATION_COVERAGE_DISPLAY_H_ // NOLINT
21
#define LOCALIZATION_RVIZ_PLUGINS_LOCALIZATION_COVERAGE_DISPLAY_H_ // NOLINT
22
23
// Required for Qt
24
#ifndef Q_MOC_RUN
25
#include <ros/node_handle.h>
26
#include <ros/publisher.h>
27
#include <rviz/display.h>
28
#endif
29
30
#include <rosbag/view.h>
31
#include <Eigen/Geometry>
32
#include <vector>
33
34
// Forward declarations for ogre and rviz
35
namespace
Ogre
{
36
class
SceneNode;
37
}
38
39
namespace
localization_rviz_plugins
{
40
41
class
LocalizationCoverageDisplay
:
public
rviz::Display {
42
Q_OBJECT
// NOLINT
43
public :
// NOLINT
44
LocalizationCoverageDisplay
();
45
~LocalizationCoverageDisplay
() =
default
;
46
47
protected
:
48
void
onInitialize
()
final
;
49
void
reset
()
final
;
50
51
private
:
52
void
drawMap();
53
54
// TODO(rosussan): Remove publishing and use point_cloud_common from rviz/default_plugins
55
// when linking error is fixed
56
std::vector<Eigen::Vector3f> positions_;
57
ros::Publisher cloud_publisher_;
58
ros::NodeHandle nh_;
59
};
60
}
// namespace localization_rviz_plugins
61
#endif // LOCALIZATION_RVIZ_PLUGINS_LOCALIZATION_COVERAGE_DISPLAY_H_ NOLINT
Ogre
Definition:
trajectory_display.h:28
localization_rviz_plugins::LocalizationCoverageDisplay::onInitialize
void onInitialize() final
Definition:
localization_coverage_display.cc:52
localization_rviz_plugins::LocalizationCoverageDisplay::reset
void reset() final
Definition:
localization_coverage_display.cc:92
localization_rviz_plugins::LocalizationCoverageDisplay::~LocalizationCoverageDisplay
~LocalizationCoverageDisplay()=default
localization_rviz_plugins::LocalizationCoverageDisplay::LocalizationCoverageDisplay
LocalizationCoverageDisplay()
Definition:
localization_coverage_display.cc:34
localization_rviz_plugins
Definition:
depth_odometry_display.cc:42
localization_rviz_plugins::LocalizationCoverageDisplay
Definition:
localization_coverage_display.h:41