Go to the documentation of this file.
40 kobuki.setBaseControl(0,0);
46 ecl::linear_algebra::Vector3d pose_update_rates;
47 kobuki.updateOdometry(pose_update, pose_update_rates);
49 dx += pose_update.x();
50 dth += pose_update.heading();
60 else if (
dx >= 1.0) {
kobuki.setBaseControl(0.0, 3.3);
return; }
61 else {
kobuki.setBaseControl(0.3, 0.0);
return; }
88 int main(
int argc,
char** argv)
92 std::cout <<
"Demo : Example of simple control loop." << std::endl;
100 pose = kobuki_manager.
getPose();
101 std::cout <<
"current pose: [" << pose.x() <<
", " << pose.y() <<
", " << pose.heading() <<
"]" << std::endl;
104 std::cout << e.
what();
std::string sigslots_namespace
The first part of a sigslot connection namespace ["/kobuki"].
void signalHandler(int signum)
bool enable_acceleration_limiter
Enable or disable the acceleration limiter [true].
int main(int argc, char **argv)
ecl::LegacyPose2D< double > getPose()
ecl::LegacyPose2D< double > pose
Keyboard remote control for our robot core (mobile base).
void connect(const std::string &topic)
Parameter list and validator for the kobuki.
Device driver core interface.
The core kobuki driver class.
const char * what() const
KobukiManager()
Default constructor, needs initialisation.
ecl::Slot slot_stream_data
std::string device_port
The serial device port name [/dev/kobuki].
kobuki_driver
Author(s): Daniel Stonier
, Younghun Ju , Jorge Santos Simon
autogenerated on Wed Mar 2 2022 00:26:14