ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
void loop(){ }
To handle incoming messages (ie: process event queues), rosserial
needs you to call nh.spinOnce()
periodically.
You're not doing that.
Refer to the Hello World tutorial on the rosserial_arduino/Tutorials page.
2 | No.2 Revision |
void loop(){ }
why cannot i run this code..?
To The code probably runs just fine, but to handle incoming messages (ie: process event queues), rosserial
needs you to call nh.spinOnce()
periodically.
You're not doing that.
You'll want to:
nh.spinOnce()
in loop()
, anddelay(..)
in there to control how often loop()
is calledRefer to the Hello World tutorial on the rosserial_arduino/Tutorials page.