NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
depth_odometry_nodelet.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 #ifndef DEPTH_ODOMETRY_DEPTH_ODOMETRY_NODELET_H_
19 #define DEPTH_ODOMETRY_DEPTH_ODOMETRY_NODELET_H_
20 
22 #include <ff_msgs/SetBool.h>
23 #include <ff_util/ff_nodelet.h>
24 
25 #include <image_transport/image_transport.h>
26 
27 #include <sensor_msgs/PointCloud2.h>
28 #include <ros/node_handle.h>
29 #include <ros/publisher.h>
30 #include <ros/subscriber.h>
31 
32 namespace depth_odometry {
34  public:
36 
37  private:
38  void Initialize(ros::NodeHandle* nh) final;
39  void SubscribeAndAdvertise(ros::NodeHandle* nh);
40  void PointCloudCallback(const sensor_msgs::PointCloud2ConstPtr& point_cloud_msg);
41  void ImageCallback(const sensor_msgs::ImageConstPtr& image_msg);
42  bool EnableService(ff_msgs::SetBool::Request& req, ff_msgs::SetBool::Response& res);
43 
44  DepthOdometryWrapper depth_odometry_wrapper_;
45  image_transport::Subscriber image_sub_;
46  ros::Subscriber point_cloud_sub_;
47  ros::Publisher depth_odometry_pub_;
48  ros::ServiceServer enable_srv_;
49  bool enabled_;
50 };
51 } // namespace depth_odometry
52 
53 #endif // DEPTH_ODOMETRY_DEPTH_ODOMETRY_NODELET_H_
depth_odometry_wrapper.h
depth_odometry::DepthOdometryNodelet
Definition: depth_odometry_nodelet.h:33
ff_nodelet.h
depth_odometry
Definition: depth_image_features_and_points.h:34
depth_odometry::DepthOdometryNodelet::DepthOdometryNodelet
DepthOdometryNodelet()
Definition: depth_odometry_nodelet.cc:29
depth_odometry::DepthOdometryWrapper
Definition: depth_odometry_wrapper.h:39
ff_util::FreeFlyerNodelet
Definition: ff_nodelet.h:57