roboclaw_ros icon indicating copy to clipboard operation
roboclaw_ros copied to clipboard

RoboClaw ROS driver in C++

Open ghost opened this issue 10 years ago • 11 comments

request of a C++ driver version for ROS, that includes USB and UART support

ghost avatar Mar 11 '16 15:03 ghost

Awesome guys. I really needed this.

griz11 avatar Mar 23 '16 18:03 griz11

Okay so update on the C++ driver.

I have made a good bit of progress but due to the fact that the developers of the Roboclaw did not provide a C++ driver for anything other than Arduino, I'm having to write it from scratch. This is not very difficult but is extremely time consuming considering the large number of functions that are needed. I'm also making sure that all of the driver code is compliant with ROS and will not interfere with other Ross knows that might be using serial. As soon as I have the C++ Roboclaw driver written the ROS C++ node should not take much longer.

sonyccd avatar Apr 05 '16 13:04 sonyccd

I actually just built one myself using the ROS serial library and modifying the existing Roboclaw C++ code. The serial library is deliberately modeled after PySerial, so It actually ended up being pretty easy to translate stuff from the Roboclaw Python code. You primarily just need to implement the write() and read() methods of the class and get rid of all the Arduino specific stuff. Aside from that a lot of the existing code can remain intact. I will post it next week once I have tested everything!

ColinHeffernan avatar May 03 '16 15:05 ColinHeffernan

Hi Colin

your contribution will be very welcome, please if you can share this it would be fantastic

Thank you

Date: Tue, 3 May 2016 08:49:52 -0700 From: [email protected] To: [email protected] CC: [email protected]; [email protected] Subject: Re: [sonyccd/roboclaw_ros] RoboClaw ROS driver in C++ (#1)

I actually just built one myself using the ROS serial library and modifying the existing Roboclaw C++ code. The serial library is deliberately modeled after PySerial, so It actually ended up being pretty easy to translate stuff from the Roboclaw Python code. You primarily just need to implement the write() and read() methods of the class and get rid of all the Arduino specific stuff. Aside from that a lot of the existing code can remain intact. I will post it next week once I have tested everything!

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub

harryman1 avatar May 04 '16 11:05 harryman1

This is great! I have been swamped with finals so this makes like much easier. If you post the C++ driver I will write the C++ node to use it. I will also contact ionmc and let them know you wrote a C++ driver.

sonyccd avatar May 04 '16 14:05 sonyccd

I just posted a development branch so feel free to have at it. I can't actually test it until next week though, so I'll have no idea if anything works or if it is leaking memory etc... I'm pretty new to C++, so I would love any early feedback you can give. I was actually going to email them about an error in the Python library anyway, so I'll send my code along once I test and verify it next week.

ColinHeffernan avatar May 04 '16 15:05 ColinHeffernan

This is great to hear from so many people. I am about to start using the roboclaw again so I will start pitching in with in a month or so .

sonyccd avatar Aug 06 '16 16:08 sonyccd

Can someone update on the status of the C++ library? Thanks in advance.

jagadeesh-nelaturu avatar Oct 08 '16 11:10 jagadeesh-nelaturu

Would anyone like to take this on?

I am yet again not working with the roboclaw

sonyccd avatar Oct 08 '16 21:10 sonyccd

https://github.com/csvance/roboclaw

Just got SLAM working using a node I wrote in C++. It doesn't have a ton of bells and whistles yet, but Odometry and differential drive works with move_base / gmapping.

There will definitely be improvements / additions to it in the future, including support for drive systems other than differential.

csvance avatar Jan 07 '19 02:01 csvance

Is there any update on the driver, does it work with ROS melodic?

AlbertCAC avatar Feb 28 '22 18:02 AlbertCAC