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

Revision history [back]

Yes you can publish any message type from your arduino. You need to write a .ino script to do so. Make sure you include the following lines:

#include <ros.h>
#include <nav_msgs/Odometry.h>

at the top before the line

#include "Arduino.h"

Yes you can publish any message type from your arduino. You need to write a .ino script to do so. Make sure you include the following lines:

#include <ros.h>
#include <nav_msgs/Odometry.h>

at the top before the line

#include "Arduino.h"

Edit: The rosserial library even has an example sketch named Odom. You can check it out.