fake_kobuki.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013, Yujin Robot.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the name of Yujin Robot nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 #ifndef _FAKE_KOBUKI_H_
31 #define _FAKE_KOBUKI_H_
32 
33 #include <ros/ros.h>
34 #include <nav_msgs/Odometry.h>
35 #include <geometry_msgs/TransformStamped.h>
36 #include <sensor_msgs/JointState.h>
37 #include <kobuki_msgs/VersionInfo.h>
38 
39 // place holder for future support
40 //#include <sensor_msgs/Imu.h>
41 //#include <kobuki_msgs/ButtonEvent.h>
42 //#include <kobuki_msgs/BumperEvent.h>
43 //#include <kobuki_msgs/CliffEvent.h>
44 //#include <kobuki_msgs/DigitalOutput.h>
45 //#include <kobuki_msgs/DigitalInputEvent.h>
46 //#include <kobuki_msgs/ExternalPower.h>
47 //#include <kobuki_msgs/DockInfraRed.h>
48 //#include <kobuki_msgs/Led.h>
49 //#include <kobuki_msgs/MotorPower.h>
50 //#include <kobuki_msgs/PowerSystemEvent.h>
51 //#include <kobuki_msgs/RobotStateEvent.h>
52 //#include <kobuki_msgs/SensorState.h>
53 //#include <kobuki_msgs/Sound.h>
54 //#include <kobuki_msgs/WheelDropEvent.h>
55 
56 namespace kobuki
57 {
58  enum {
59  LEFT=0,
61  };
62 
63  class FakeKobuki
64  {
65  public:
66  void init(ros::NodeHandle& nh);
67 
68  // variables
69  kobuki_msgs::VersionInfo versioninfo;
70 
71  sensor_msgs::JointState joint_states;
72  nav_msgs::Odometry odom;
73  float odom_pose[3];
74  float odom_vel[3];
75  double pose_cov[36];
76 
77  std::string wheel_joint_name[2];
78  float wheel_speed_cmd[2];
81 
84 
85  // events
86 // kobuki_msgs::BumperEvent bumper_event;
87 // kobuki_msgs::DigitalInputEvent digital_input;
88 // kobuki_msgs::WheelDropEvent wheel_drop;
89 // kobuki_msgs::PowerSystemEvent power_system;
90 // kobuki_msgs::CliffEvent cliff;
91 // kobuki_msgs::ButtonEvent button;
92 
93  // sensors
94 // kobuki_msgs::SensorState core;
95 // kobuki_msgs::DockInfraRed dock_ir;
96 // sensor_msgs::Imu imu_data;
97 
98  };
99 }
100 #endif
void init(ros::NodeHandle &nh)
Definition: fake_kobuki.cpp:5
double cmd_vel_timeout
Definition: fake_kobuki.h:83
sensor_msgs::JointState joint_states
Definition: fake_kobuki.h:71
nav_msgs::Odometry odom
Definition: fake_kobuki.h:72
std::string wheel_joint_name[2]
Definition: fake_kobuki.h:77
float odom_pose[3]
Definition: fake_kobuki.h:73
double pose_cov[36]
Definition: fake_kobuki.h:75
kobuki_msgs::VersionInfo versioninfo
Definition: fake_kobuki.h:69
float wheel_speed_cmd[2]
Definition: fake_kobuki.h:78


kobuki_softnode
Author(s): Jihoon Lee
autogenerated on Mon Jun 10 2019 13:52:14