NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
rapid_image.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 #ifndef GROUND_DDS_ROS_BRIDGE_RAPID_IMAGE_H_
20 #define GROUND_DDS_ROS_BRIDGE_RAPID_IMAGE_H_
21 
22 #include <string>
23 #include <cstring>
24 #include <memory>
25 
28 
29 #include "rapidDds/MIMETypesConstants.h"
30 #include "rapidDds/ImageSensorSample.h"
31 #include "rapidDds/ImageSensorSampleSupport.h"
32 #include "rapidDds/RapidConstants.h"
33 
34 #include "rapidIo/RapidIoParameters.h"
35 
36 #include "sensor_msgs/CompressedImage.h"
37 
38 namespace ff {
39 
41  public:
42  RapidImageToRos(const std::string& subscribe_topic,
43  const std::string& pub_topic,
44  const ros::NodeHandle &nh,
45  const unsigned int queue_size = 10);
46 
47  // Callback for ddsEventLoop
48  void operator() (rapid::ImageSensorSample const* rapid_img);
49 };
50 
51 } // end namespace ff
52 
53 #endif // GROUND_DDS_ROS_BRIDGE_RAPID_IMAGE_H_
util.h
ff::RapidImageToRos::RapidImageToRos
RapidImageToRos(const std::string &subscribe_topic, const std::string &pub_topic, const ros::NodeHandle &nh, const unsigned int queue_size=10)
Definition: rapid_image.cc:23
ff::RapidImageToRos
Definition: rapid_image.h:40
ff::RapidImageToRos::operator()
void operator()(rapid::ImageSensorSample const *rapid_img)
Definition: rapid_image.cc:56
ff
Definition: generic_rapid_msg_ros_pub.h:36
ff::RapidSubRosPub
base class for rapid subscriber to ros publisher
Definition: rapid_sub_ros_pub.h:42
rapid_sub_ros_pub.h