Commit graph

132 commits

Author SHA1 Message Date
Bernhard Klauninger
2c58777e45 Actually fixed wrap around 2024-09-22 17:32:37 +02:00
DuSack1220
1bc2d768f7 fixed encoder overflow 2024-09-22 17:32:37 +02:00
DuSack1220
fd2638114a added cliff sensor signals 2024-09-22 17:32:37 +02:00
Jacob Perron
a8e274be15 Update README
Fix/remove broken or outdated links.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2023-05-21 16:59:38 -07:00
Jacob Perron
05e01c85a4 Update CI workflow
Remove 18.04 since it is no longer supported by GitHub actions.
Add 22.04.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2023-05-21 16:54:35 -07:00
Jacob Perron
ca6e477d25 3.1.0 2023-05-09 14:50:03 -07: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
Jacob Perron
c694bd30d3 3.0.0 2022-04-06 17:27:29 -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
35270f58cf Update workflow
Run CI on all PRs and not commits to default branch.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2022-02-24 14:06:55 -08:00
Jacob Perron
4304155f76 Update links to serial protocol documentation 2022-02-24 14:05:07 -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
Jacob Perron
fbc87dea3f Update build badge
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2021-05-05 21:56:29 -07:00
Jacob Perron
98660f6c21 Fix 'maybe-uninitialized' warnings
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2021-05-05 21:51:52 -07:00
Jacob Perron
68ee257f1d Remove travis.yml
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2021-05-05 21:51:52 -07:00
Jacob Perron
ca4c63b5a8 Add GitHub workflow for CI
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2021-05-05 21:51:52 -07:00
Daniel Smith
449ed4b093
Fix motor setting (#62)
* Change 3 setAllMotor calls to use float parameter.

* Use static_cast for proper conversion to float.
2021-04-18 23:29:20 -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
cc95ad35a0 Correct version in CMake package version file
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2020-12-28 21:06:48 -08: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
Daniel Smith
850b011a55
Implement methods for getting overcurrent status. (#57) 2020-11-01 17:42:57 -08:00
Stefan Krupop
ccf6d0cdc0 Use OC_MOTORS instead of OC_MOTORS_PWM on V_1 models (#55)
SCI for older Roombas (V_1) did not include OC_MOTORS_PWM, but only OC_MOTORS. Use that instead of OC_MOTORS_PWM for V_1, interpeting values != 0 as "on"
2019-12-03 16:20:35 -08:00
Jacob Perron
f9f3aa9d3d 2.0.0 2019-09-02 14:12:10 -07:00
Jacob Perron
dff0308b1b Cleanup examples
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-09-02 12:30:45 -07: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
111b062251 Remove Trusty CI job
Since it is EOL.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-09-02 12:09:43 -07:00
Jacob Perron
5348a9ab7a Default to C++11
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
c1c0ce6ea9 Refactor travis.yml
Shorten by using matrix key and add -Werror compiler flag.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-30 00:54:50 -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
Ryota Suzuki
04ab2ccd80 add initializer of a variable for compiler compatibility 2019-08-26 22:43:29 -07:00
Ryota Suzuki
b42565be8e add other serial communication options
Otherwize, it can be happened that Operation "7" (0x07) turns to be "135" (0x87)
2019-08-26 22:43:29 -07:00
Jacob Perron
9b3e77d0fe Update README
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-26 22:15:00 -07:00
Jacob Perron
6c36bca74f Add cliff sensor example
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-26 21:21:07 -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
fd2f05047e Update wheeldrop example
Now prints status of each wheel to screen.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-26 21:21:00 -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
Jacob Perron
df149bdc12 Update maintainer info
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-26 20:16:43 -07:00
Jacob Perron
a5dfda66c9 Use travis bionic image
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-08-26 19:53:39 -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
Anton Gerasimov
070550e655 Fix for compatibility with Boost 1.66
Compatibility with at least as early as Boost 1.58 still persists

Signed-off-by: Anton Gerasimov <tossel@gmail.com>
2019-06-04 00:49:40 -07:00
Jacob Perron
5723673141 Update wheel diameter for Create 2
Now matches the spec from iRobot.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-06-04 00:45:30 -07:00
Jacob Perron
5779d0bf3b Add Bionic CI job
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
2019-06-04 00:30:40 -07:00
Jacob Perron
4e8d497024 Add static cast to fix compiler warnings
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-03-26 22:03:10 -07:00
Jacob Perron
4d9f0e891a Use package.xml format 3
Make catkin dependency conditional on ROS 1.

Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-03-12 09:59:24 -07:00
Jacob Perron
228f9d6997 Add Xenial build to CI
Signed-off-by: Jacob Perron <jacobmperron@gmail.com>
2019-03-11 23:41:53 -07:00
Jacob Perron
6037b8c3bb Remove std::cout statement 2018-12-01 23:01:33 -08:00