Skip to content

SyrianSpock/stm32f4discovery_rosserial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rosserial on STM32 Discovery board using ChibiOS

This is a rosserial demo for the STM32F407 discovery board.

Quickstart

From the root of this project, generate the ROS message headers:

rosrun rosserial_client make_libraries src

Then you can build and flash the board:

git submodule init
git submodule update

make
make flash

Now we can run the node:

roscore &
rosrun rosserial_python serial_node.py _port:=/dev/ttyACM1

Replace /dev/ttyACM1 by the port used to communicate with your board.

In a new terminal, you can try out the button:

rostopic echo /button

Everytime you push the button, a message is published.

Or you can look at the accelerometer values being published:

rostopic echo /accelerometer

Finally, you can control the LEDs intensities by publishing a std_msgs/UInt16 to one of these topics:

rostopic pub /led/red std_msgs/UInt16 --once 1000
rostopic pub /led/blue std_msgs/UInt16 --once 1000
rostopic pub /led/green std_msgs/UInt16 --once 1000
rostopic pub /led/orange std_msgs/UInt16 --once 1000

About

Rosserial on STM32 Discovery board using ChibiOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published