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

can I use rosserial mbed library without using mbed os?

asked 2017-02-22 02:31:28 -0600

ozgurerbulan gravatar image

updated 2017-02-22 07:06:52 -0600

Hi everyone,

I am using rosserial mbed with online compiler. It is fine for now but I want to use my STM32F767 nucleo board more efficiently. I am wondering that is it possible to use offline compiler and mbed rosserial library without using mbed os?

It looks like rosrun rosserial_mbed <ros-lib-dir> creates header files for board and only MbedHardware.h directly related with mbed.

I'm not an expert on microcontroller, so I am just wondering can I simply use rosserials command and use generated ros message headers on my code?

edit retag flag offensive close merge delete


If you don't plan to use mbed, could you not use any of the other targets that rosserial supports?

gvdhoorn gravatar image gvdhoorn  ( 2017-02-22 09:51:43 -0600 )edit

I just realise that I do not needrosserial_mbed, rosrun rosserial_clint does the same job. So can I use that libraries with ARM cmsis RTOS or freeRTOS?

ozgurerbulan gravatar image ozgurerbulan  ( 2017-02-22 11:39:20 -0600 )edit

mbed is actually the ARM cmsis RTOS. That is what is inside. If you need better performance use the command line compiler.There you can set the target for "deploy" and it removes the debug code and allows optimizations that would make debugging hard,

chrisalbertson gravatar image chrisalbertson  ( 2018-06-14 20:37:38 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-09-30 18:56:06 -0600

rreignier gravatar image

Yes, you only have to add a class for your hardware that implement the methods read(), write() and time(), then include it and call the constructor in the ros.h file.

You can use some implementations as examples:

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-02-22 02:31:28 -0600

Seen: 476 times

Last updated: Sep 30 '17