Commit graph

11 commits

Author SHA1 Message Date
Swapnil Patel
de253b6e81 catch boost exceptions in Serial.h 2022-10-03 18:05:12 -07:00
Jacob Perron
1563e2b3e1
Add option to disable signal handlers (#65)
This gives the user the option to create their own signal handler without having create::Create interfere.
They can disable the sigint/sigterm handler and be responsible for disconnecting from the robot themselves.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2021-05-05 23:25:40 -07:00
Jacob Perron
2b9591f0f7
Replace boost features with C++11 equivalents (#58)
* Replace boost features with C++11 equivalents

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Include <cmath> in util.h

Needed for std::abs

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2020-11-01 18:05:17 -08:00
Jacob Perron
f5044c7ec8 Disconnect from serial cleanly on SIGINT
Send the STOP opcode before exiting the program to ensure the robot is not left in a state that could potentially drain the battery.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-27 00:47:49 -07:00
Yutaka Kondo
2442ba209c Use shared pointer when binding callback for serial read (#38)
* Resolves an issue with ROS Melodic on 18.04.
2019-08-19 10:32:00 -07:00
Ben Wolsieffer
618956e14c Add support for early model Roomba 400s and other robots using the original SCI protocol. 2016-08-14 22:40:02 -04:00
jacobperron
fc1fb48930 Fix bug: Too many packets requested corrupting serial buffer 2016-02-13 11:50:39 -08:00
jacobperron
9cb3250268 Expose functions for getting number of corrupt packets and total packets in Create class 2016-02-12 18:06:26 -08:00
jacobperron
bcd27b788a Code cleanup 2016-02-12 17:44:30 -08:00
jacobperron
8a3209d6a1 Add getters for number of corrupt and total packets received over serial 2016-02-12 17:22:15 -08:00
jacobperron
43c7b95361 Initial commit. 2015-12-11 14:08:34 -08:00