publisher code in arduino is not the same as the one in ubuntu
Here are the links to official tutorial:
publisher example code with rosserial_arduino
publisher example code in ubuntu
The examples are different from each other with regard to publisher. I am curious about why ?
Is publisher in arduino using C libraries of ROS instead of those of C++, in order to save more storage for arduino board?