Main Page
Classes
Files
File List
File Members
include
turtlebot3_slam
flat_world_imu_node.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright 2018 ROBOTIS CO., LTD.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*******************************************************************************/
16
17
#ifndef FLAT_WORLD_IMU_NODE_H_
18
#define FLAT_WORLD_IMU_NODE_H_
19
20
#include <
ros/ros.h
>
21
#include <sensor_msgs/Imu.h>
22
23
#define GRAVITY 9.8
24
25
class
FlatWorldImuNode
26
{
27
public
:
28
FlatWorldImuNode
();
29
~FlatWorldImuNode
();
30
bool
init
();
31
32
private
:
33
ros::NodeHandle
nh_
;
34
ros::Time
last_published_time_
;
35
ros::Publisher
publisher_
;
36
ros::Subscriber
subscriber_
;
37
void
msgCallback
(
const
sensor_msgs::ImuConstPtr imu_in);
38
};
39
40
#endif // FLAT_WORLD_IMU_NODE_H_
FlatWorldImuNode::publisher_
ros::Publisher publisher_
Definition:
flat_world_imu_node.h:35
ros::NodeHandle
ros::Time
FlatWorldImuNode::subscriber_
ros::Subscriber subscriber_
Definition:
flat_world_imu_node.h:36
FlatWorldImuNode::~FlatWorldImuNode
~FlatWorldImuNode()
Definition:
flat_world_imu_node.cpp:25
FlatWorldImuNode::FlatWorldImuNode
FlatWorldImuNode()
Definition:
flat_world_imu_node.cpp:19
ros::Subscriber
FlatWorldImuNode::msgCallback
void msgCallback(const sensor_msgs::ImuConstPtr imu_in)
Definition:
flat_world_imu_node.cpp:37
FlatWorldImuNode::nh_
ros::NodeHandle nh_
Definition:
flat_world_imu_node.h:33
ros.h
FlatWorldImuNode
Definition:
flat_world_imu_node.h:25
FlatWorldImuNode::init
bool init()
Definition:
flat_world_imu_node.cpp:29
ros::Publisher
FlatWorldImuNode::last_published_time_
ros::Time last_published_time_
Definition:
flat_world_imu_node.h:34
turtlebot3_slam
Author(s): Pyo
, Darby Lim
, Gilbert
, Leon Jung
autogenerated on Wed Apr 7 2021 02:10:39