#include <kobuki_ros.hpp>
Definition at line 82 of file kobuki_ros.hpp.
kobuki::KobukiRos::KobukiRos | ( | std::string & | node_name | ) |
Default constructor.
Make sure you call the init() method to fully define this node.
Definition at line 61 of file kobuki_ros.cpp.
This will wait some time while kobuki internally closes its threads and destructs itself.
Definition at line 96 of file kobuki_ros.cpp.
void kobuki::KobukiRos::advertiseTopics | ( | ros::NodeHandle & | nh | ) | [private] |
Two groups of publishers, one required by turtlebot, the other for kobuki esoterics.
Definition at line 295 of file kobuki_ros.cpp.
bool kobuki::KobukiRos::init | ( | ros::NodeHandle & | nh | ) |
Definition at line 101 of file kobuki_ros.cpp.
void kobuki::KobukiRos::processStreamData | ( | ) | [private] |
Definition at line 49 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishBumperEvent | ( | const BumperEvent & | event | ) | [private] |
Definition at line 269 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishButtonEvent | ( | const ButtonEvent & | event | ) | [private] |
Definition at line 249 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishCliffEvent | ( | const CliffEvent & | event | ) | [private] |
Definition at line 289 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishDockIRData | ( | ) | [private] |
Definition at line 182 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishInertia | ( | ) | [private] |
Definition at line 115 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishInputEvent | ( | const InputEvent & | event | ) | [private] |
Definition at line 353 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishPowerEvent | ( | const PowerEvent & | event | ) | [private] |
Definition at line 329 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishRawDataCommand | ( | Command::Buffer & | buffer | ) | [private] |
Prints the raw data stream to a publisher.
This is a lazy publisher, it only publishes if someone is listening. It publishes the hex byte values of the raw data commands. Useful for debugging command to protocol byte packets to the firmware.
The signal which calls this function is sending a copy of the buffer (don't worry about mutexes). Be ideal if we used const PacketFinder::BufferType here, but haven't updated PushPop to work with consts yet.
buffer |
Definition at line 392 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishRawDataStream | ( | PacketFinder::BufferType & | buffer | ) | [private] |
Prints the raw data stream to a publisher.
This is a lazy publisher, it only publishes if someone is listening. It publishes the hex byte values of the raw data (incoming) stream. Useful for checking when bytes get mangled.
The signal which calls this function is sending a copy of the buffer (don't worry about mutexes). Be ideal if we used const PacketFinder::BufferType here, but haven't updated PushPop to work with consts yet.
buffer |
Definition at line 419 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishRawInertia | ( | ) | [private] |
Definition at line 150 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishRobotEvent | ( | const RobotEvent & | event | ) | [private] |
Definition at line 364 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishSensorState | ( | ) | [private] |
Definition at line 61 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishVersionInfo | ( | const VersionInfo & | version_info | ) | [private] |
Publish fw, hw, sw version information.
The driver will only gather this data when initialising so it is important that this publisher is latched.
Definition at line 214 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishWheelEvent | ( | const WheelEvent & | event | ) | [private] |
Definition at line 310 of file slot_callbacks.cpp.
void kobuki::KobukiRos::publishWheelState | ( | ) | [private] |
Definition at line 98 of file slot_callbacks.cpp.
void kobuki::KobukiRos::rosDebug | ( | const std::string & | msg | ) | [inline, private] |
Definition at line 166 of file kobuki_ros.hpp.
void kobuki::KobukiRos::rosError | ( | const std::string & | msg | ) | [inline, private] |
Definition at line 169 of file kobuki_ros.hpp.
void kobuki::KobukiRos::rosInfo | ( | const std::string & | msg | ) | [inline, private] |
Definition at line 167 of file kobuki_ros.hpp.
void kobuki::KobukiRos::rosWarn | ( | const std::string & | msg | ) | [inline, private] |
Definition at line 168 of file kobuki_ros.hpp.
void kobuki::KobukiRos::subscribeDigitalOutputCommand | ( | const kobuki_msgs::DigitalOutputConstPtr | msg | ) | [private] |
Definition at line 93 of file subscriber_callbacks.cpp.
void kobuki::KobukiRos::subscribeExternalPowerCommand | ( | const kobuki_msgs::ExternalPowerConstPtr | msg | ) | [private] |
Definition at line 104 of file subscriber_callbacks.cpp.
void kobuki::KobukiRos::subscribeLed1Command | ( | const kobuki_msgs::LedConstPtr | msg | ) | [private] |
Definition at line 69 of file subscriber_callbacks.cpp.
void kobuki::KobukiRos::subscribeLed2Command | ( | const kobuki_msgs::LedConstPtr | msg | ) | [private] |
Definition at line 81 of file subscriber_callbacks.cpp.
void kobuki::KobukiRos::subscribeMotorPower | ( | const kobuki_msgs::MotorPowerConstPtr | msg | ) | [private] |
Definition at line 207 of file subscriber_callbacks.cpp.
void kobuki::KobukiRos::subscribeResetOdometry | ( | const std_msgs::EmptyConstPtr | ) | [private] |
Reset the odometry variables.
Definition at line 195 of file subscriber_callbacks.cpp.
void kobuki::KobukiRos::subscribeSoundCommand | ( | const kobuki_msgs::SoundConstPtr | msg | ) | [private] |
Play a predefined sound (single sound or sound sequence)
Definition at line 155 of file subscriber_callbacks.cpp.
void kobuki::KobukiRos::subscribeTopics | ( | ros::NodeHandle & | nh | ) | [private] |
Two groups of subscribers, one required by turtlebot, the other for kobuki esoterics.
Definition at line 325 of file kobuki_ros.cpp.
void kobuki::KobukiRos::subscribeVelocityCommand | ( | const geometry_msgs::TwistConstPtr | msg | ) | [private] |
Definition at line 53 of file subscriber_callbacks.cpp.
bool kobuki::KobukiRos::update | ( | ) |
Definition at line 240 of file kobuki_ros.cpp.
Definition at line 187 of file kobuki_ros.hpp.
Definition at line 178 of file kobuki_ros.hpp.
Definition at line 181 of file kobuki_ros.hpp.
Definition at line 108 of file kobuki_ros.hpp.
Definition at line 107 of file kobuki_ros.hpp.
Definition at line 180 of file kobuki_ros.hpp.
Definition at line 108 of file kobuki_ros.hpp.
bool kobuki::KobukiRos::cmd_vel_timed_out_ [private] |
Definition at line 99 of file kobuki_ros.hpp.
Definition at line 111 of file kobuki_ros.hpp.
Definition at line 186 of file kobuki_ros.hpp.
Definition at line 106 of file kobuki_ros.hpp.
Definition at line 111 of file kobuki_ros.hpp.
Definition at line 185 of file kobuki_ros.hpp.
Definition at line 106 of file kobuki_ros.hpp.
Definition at line 107 of file kobuki_ros.hpp.
Definition at line 106 of file kobuki_ros.hpp.
sensor_msgs::JointState kobuki::KobukiRos::joint_states [private] |
Definition at line 97 of file kobuki_ros.hpp.
Kobuki kobuki::KobukiRos::kobuki [private] |
Definition at line 96 of file kobuki_ros.hpp.
Definition at line 112 of file kobuki_ros.hpp.
Definition at line 112 of file kobuki_ros.hpp.
Definition at line 183 of file kobuki_ros.hpp.
Definition at line 113 of file kobuki_ros.hpp.
std::string kobuki::KobukiRos::name [private] |
Definition at line 95 of file kobuki_ros.hpp.
Odometry kobuki::KobukiRos::odometry [private] |
Definition at line 98 of file kobuki_ros.hpp.
Definition at line 108 of file kobuki_ros.hpp.
Definition at line 109 of file kobuki_ros.hpp.
Definition at line 109 of file kobuki_ros.hpp.
Definition at line 106 of file kobuki_ros.hpp.
Definition at line 113 of file kobuki_ros.hpp.
Definition at line 107 of file kobuki_ros.hpp.
Definition at line 106 of file kobuki_ros.hpp.
bool kobuki::KobukiRos::serial_timed_out_ [private] |
Definition at line 100 of file kobuki_ros.hpp.
ecl::Slot<const BumperEvent&> kobuki::KobukiRos::slot_bumper_event [private] |
Definition at line 136 of file kobuki_ros.hpp.
ecl::Slot<const ButtonEvent&> kobuki::KobukiRos::slot_button_event [private] |
Definition at line 135 of file kobuki_ros.hpp.
ecl::Slot<const CliffEvent&> kobuki::KobukiRos::slot_cliff_event [private] |
Definition at line 137 of file kobuki_ros.hpp.
ecl::Slot<const std::string&> kobuki::KobukiRos::slot_debug [private] |
Definition at line 142 of file kobuki_ros.hpp.
ecl::Slot<const std::string&> kobuki::KobukiRos::slot_error [private] |
Definition at line 142 of file kobuki_ros.hpp.
ecl::Slot<const std::string&> kobuki::KobukiRos::slot_info [private] |
Definition at line 142 of file kobuki_ros.hpp.
ecl::Slot<const InputEvent&> kobuki::KobukiRos::slot_input_event [private] |
Definition at line 140 of file kobuki_ros.hpp.
ecl::Slot<const PowerEvent&> kobuki::KobukiRos::slot_power_event [private] |
Definition at line 139 of file kobuki_ros.hpp.
Definition at line 143 of file kobuki_ros.hpp.
Definition at line 144 of file kobuki_ros.hpp.
ecl::Slot<const RobotEvent&> kobuki::KobukiRos::slot_robot_event [private] |
Definition at line 141 of file kobuki_ros.hpp.
ecl::Slot kobuki::KobukiRos::slot_stream_data [private] |
Definition at line 134 of file kobuki_ros.hpp.
ecl::Slot<const VersionInfo&> kobuki::KobukiRos::slot_version_info [private] |
Definition at line 133 of file kobuki_ros.hpp.
ecl::Slot<const std::string&> kobuki::KobukiRos::slot_warn [private] |
Definition at line 142 of file kobuki_ros.hpp.
ecl::Slot<const WheelEvent&> kobuki::KobukiRos::slot_wheel_event [private] |
Definition at line 138 of file kobuki_ros.hpp.
Definition at line 112 of file kobuki_ros.hpp.
Definition at line 184 of file kobuki_ros.hpp.
Definition at line 177 of file kobuki_ros.hpp.
Definition at line 111 of file kobuki_ros.hpp.
Definition at line 105 of file kobuki_ros.hpp.
Definition at line 179 of file kobuki_ros.hpp.
Definition at line 182 of file kobuki_ros.hpp.
Definition at line 108 of file kobuki_ros.hpp.