Commit graph

40 commits

Author SHA1 Message Date
Konstantin Lampalzer
8b5167b319 fix tests for new cliff packets, add string to packet.h 2024-09-22 18:13:22 +02:00
Bernhard Klauninger
aaa7b5076e Implemented Create reset method 2024-09-22 17:32:37 +02:00
DuSack1220
7ade48545e fixed cliff signal documentation 2024-09-22 17:32:37 +02:00
DuSack1220
fd2638114a added cliff sensor signals 2024-09-22 17:32:37 +02:00
Swapnil Patel
d75d41c638 address warnings and errors 2022-10-03 18:05:12 -07:00
Swapnil Patel
de253b6e81 catch boost exceptions in Serial.h 2022-10-03 18:05:12 -07:00
Josh Gadeken
e99939c785
Mode report workaround (#67)
* Add option for OI mode reporting bug workaround

https://github.com/AutonomyLab/create_robot/issues/64

* Update README.md

* Add note about 600 series OI mode reporting bug to Known Issues
  section and include details of API workaround option.
* Add myself to contributors list
2022-04-06 17:21:35 -07:00
Jacob Perron
db575de22a Remove trailing whitespace
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2022-02-24 14:06:55 -08: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
tim-fan
20ed0b16ae
Use average dt values for velocity calculation (#60) 2021-04-18 23:24:43 -07:00
Jacob Perron
fd1d0a220f
Use steady clock for computing velocity (#59)
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2021-03-25 16:04:41 -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
eaeea24a21 Use std::chrono instead of custom timestamp function
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-09-02 12:09:43 -07:00
Jacob Perron
dce7336bbe Add compiler flags '-Wall -Wextra -Wpedantic'
Fix warnings as a result.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-09-02 12:09:43 -07: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
Jacob Perron
cafe0c5e56 Add API for getting left and right cliff detections
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-26 21:21:07 -07:00
Jacob Perron
4a0f8ad72b Add API for getting left and right wheeldrop
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-26 21:21:00 -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
Jacob Perron
a70dee6605 Refactor Packet API
Declare setData member as protected
Rename 'setTempData' to 'setDataToValidate'
2018-04-06 21:44:28 -07:00
K.Moriarty
360b8c2599 updated setDigits function API comments
-added HTML to adjust for spacing in diagram, showing the proper ordering of segments.
-note that if this doesn't work, you may need to add asterisks back to each line, and try a more manual approach (using &nbsp, <br>).
For the API documentation parsing procedure used by ROS for C++ packages, refer to:
http://www.stack.nl/~dimitri/doxygen/manual/htmlcmds.html
2018-04-04 22:25:43 -07:00
Erik Schembor
5bc4d85177 Add apis for getting the measured velocities of the wheels 2017-12-13 22:04:22 -05:00
Erik Schembor
3906d7954d Add ability to drive the wheels with direct pwm duty 2017-12-13 21:58:18 -05:00
Jacob Perron
78f0af78d1 Update documentation 2016-11-13 01:15:07 -08: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
Ben Wolsieffer
d6f759d683 Expose individual wheel distances and requested velocities. Fix wheel distance calculation for the Create 1. 2016-06-27 15:00:15 -04:00
Jacob Perron
44a6f809e8 Minor refactor 2016-04-15 14:33:59 -07:00
Jacob Perron
82b01e4057 Add covariance info to Pose and Vel
Fix getMode bug
2016-04-15 14:00:10 -07:00
jacobperron
e234d705f9 Add API to get light sensor signals 2016-04-01 15:28:34 -07:00
jacobperron
76e5ac8816 Convert units to base units 2016-03-29 19:16:04 -07:00
jacobperron
fbef2e2c88 Implement 'getMode' 2016-03-28 22:31:23 -07:00
jacobperron
75dd293bfd * Rename 'isIRDetect*' functions to 'isLightBumper*'
* Documentation / code cleanup
* Add function 'driveRadius'
* Add function 'isVirtualWall'
2016-03-28 19:17:35 -07:00
jacobperron
cdc6927e76 Fix sign error on returned 'current' and 'temperature' 2016-03-25 18:10:53 -07:00
Jacob Perron
f073458624 Add support for first generation Create (Roomba 400 series) 2016-03-17 13:07:02 -07:00
Jacob Perron
0e17335eaa Add enum of special IR characters 2016-03-17 12:28:39 -07: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
81f18d58d4 Instantaneous velocity now available 2016-02-02 19:31:06 -08:00
jacobperron
43c7b95361 Initial commit. 2015-12-11 14:08:34 -08:00