Open gaya- opened 8 years ago
Hey,
We used your driver in our teaching project and found some bugs. I can't make a PR because the commits to make your software work on our robots are mixed with bugfixing commits. So, here's just a list of commits that you might want to cherry-pick:
https://github.com/sonyccd/roboclaw_ros/commit/8c4513d4980181a6d3490a5efb11fdf592f48eab https://github.com/sonyccd/roboclaw_ros/commit/8d4054eb0a588bf9a517b93674def37f7ad7ee3e https://github.com/sonyccd/roboclaw_ros/commit/0a95f8ba63171e0ab067786d9ffbb1efb3f7435c
The last commit also includes a possibility to invert the motors, in case they are wired differently. It's an extra feature but it also includes a bugfix. The line https://github.com/sonyccd/roboclaw_ros/commit/0a95f8ba63171e0ab067786d9ffbb1efb3f7435c#diff-c00ddbd0620c770bb87191dbe474030cL231 is wrong, you can't use if enc1 in locals() to check if a variable has value. So if you don't want the feature I would at least get rid of this line.
if enc1 in locals()
Cheers and thanks for providing this! Gaya
Is it possible to integrate these commits, that would be really useful!
Please make a pull request
Hey,
We used your driver in our teaching project and found some bugs. I can't make a PR because the commits to make your software work on our robots are mixed with bugfixing commits. So, here's just a list of commits that you might want to cherry-pick:
https://github.com/sonyccd/roboclaw_ros/commit/8c4513d4980181a6d3490a5efb11fdf592f48eab https://github.com/sonyccd/roboclaw_ros/commit/8d4054eb0a588bf9a517b93674def37f7ad7ee3e https://github.com/sonyccd/roboclaw_ros/commit/0a95f8ba63171e0ab067786d9ffbb1efb3f7435c
The last commit also includes a possibility to invert the motors, in case they are wired differently. It's an extra feature but it also includes a bugfix. The line https://github.com/sonyccd/roboclaw_ros/commit/0a95f8ba63171e0ab067786d9ffbb1efb3f7435c#diff-c00ddbd0620c770bb87191dbe474030cL231 is wrong, you can't use
if enc1 in locals()
to check if a variable has value. So if you don't want the feature I would at least get rid of this line.Cheers and thanks for providing this! Gaya