ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

ROS + Raspberry Pi + Motor Shield

asked 2016-12-29 11:02:22 -0500

burf2000 gravatar image

Hi there

I am currently learning ROS and have a BrickPi motor shield which I would like to control in ROS

Are there any good tutorials for controlling a Raspberry Pi Python based motor shield?

I am guessing I need to write a subscriber in Python? Most of the Arduino examples I see use serial.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-12-29 15:29:57 -0500

ChriMo gravatar image


some years agi I tried the BrickPI+RPI for LEGO equipment (motors and sensors).

Check this for a start:

Good luck

edit flag offensive delete link more


Thank you, that looks epic. Did you do a model for it to? so you can use it in RVIZ?

burf2000 gravatar image burf2000  ( 2016-12-30 06:21:20 -0500 )edit

No, I've never did it. A small picture only :-)

ChriMo gravatar image ChriMo  ( 2016-12-30 07:17:19 -0500 )edit

Thank you, I want to be able to use path finding with something I am building I guess, I need to use your script, then model the robot then use rviz to control it

burf2000 gravatar image burf2000  ( 2016-12-30 09:56:52 -0500 )edit

Do you have any tele-op control for your script?

burf2000 gravatar image burf2000  ( 2016-12-30 11:25:39 -0500 )edit

Sure: I using this small web-teleop for all my gadgets :-) (rosbridge must be started at you robot before) Nice tool for remote teleop and first person camera view :-)

ChriMo gravatar image ChriMo  ( 2017-01-01 09:22:21 -0500 )edit

Whats Rosbridge for? I go and google it :) So when I mean teleop, I mean a way to control the robot via the keyboard etc

burf2000 gravatar image burf2000  ( 2017-01-03 09:38:20 -0500 )edit

Just tried your script, you rock mate, super useful!

burf2000 gravatar image burf2000  ( 2017-01-04 07:39:38 -0500 )edit

Did you do any encoder examples mate?

burf2000 gravatar image burf2000  ( 2017-01-10 14:00:29 -0500 )edit

Question Tools



Asked: 2016-12-29 11:02:22 -0500

Seen: 761 times

Last updated: Dec 29 '16