Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
vesc_to_odom_nodelet.cpp
Go to the documentation of this file.
1
// Copyright 2020 F1TENTH Foundation
2
//
3
// Redistribution and use in source and binary forms, with or without modification, are permitted
4
// provided that the following conditions are met:
5
//
6
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions
7
// and the following disclaimer.
8
//
9
// 2. Redistributions in binary form must reproduce the above copyright notice, this list
10
// of conditions and the following disclaimer in the documentation and/or other materials
11
// provided with the distribution.
12
//
13
// 3. Neither the name of the copyright holder nor the names of its contributors may be used
14
// to endorse or promote products derived from this software without specific prior
15
// written permission.
16
//
17
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
18
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
19
// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
20
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
23
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
24
// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25
26
#include <
nodelet/nodelet.h
>
27
#include <
pluginlib/class_list_macros.h
>
28
#include <
ros/ros.h
>
29
30
#include <memory>
31
32
#include "
vesc_ackermann/vesc_to_odom.h
"
33
34
namespace
vesc_ackermann
35
{
36
37
class
VescToOdomNodelet
:
public
nodelet::Nodelet
38
{
39
public
:
40
VescToOdomNodelet
() {}
41
42
private
:
43
virtual
void
onInit
(
void
);
44
45
std::shared_ptr<VescToOdom>
vesc_to_odom_
;
46
};
// class VescToOdomNodelet
47
48
void
VescToOdomNodelet::onInit
()
49
{
50
NODELET_DEBUG
(
"Initializing RACECAR VESC odometry estimator nodelet"
);
51
vesc_to_odom_
.reset(
new
VescToOdom
(
getNodeHandle
(),
getPrivateNodeHandle
()));
52
}
53
54
}
// namespace vesc_ackermann
55
56
PLUGINLIB_EXPORT_CLASS
(
vesc_ackermann::VescToOdomNodelet
,
nodelet::Nodelet
);
vesc_ackermann::VescToOdomNodelet::onInit
virtual void onInit(void)
Definition:
vesc_to_odom_nodelet.cpp:48
vesc_ackermann::VescToOdomNodelet::VescToOdomNodelet
VescToOdomNodelet()
Definition:
vesc_to_odom_nodelet.cpp:40
vesc_ackermann
Definition:
ackermann_to_vesc.h:34
PLUGINLIB_EXPORT_CLASS
PLUGINLIB_EXPORT_CLASS(vesc_ackermann::VescToOdomNodelet, nodelet::Nodelet)
vesc_ackermann::VescToOdomNodelet::vesc_to_odom_
std::shared_ptr< VescToOdom > vesc_to_odom_
Definition:
vesc_to_odom_nodelet.cpp:45
nodelet::Nodelet::getPrivateNodeHandle
ros::NodeHandle & getPrivateNodeHandle() const
nodelet.h
nodelet::Nodelet
class_list_macros.h
nodelet::Nodelet::getNodeHandle
ros::NodeHandle & getNodeHandle() const
ros.h
vesc_to_odom.h
vesc_ackermann::VescToOdomNodelet
Definition:
vesc_to_odom_nodelet.cpp:37
vesc_ackermann::VescToOdom
Definition:
vesc_to_odom.h:42
NODELET_DEBUG
#define NODELET_DEBUG(...)
vesc_ackermann
Author(s): Michael T. Boulet
, Joshua Whitley
autogenerated on Sun Apr 18 2021 02:47:57