jeskesen / i2c_imu

ROS node for communicating with several models of commercially available IMUs over I2C in linux.
GNU General Public License v3.0
52 stars 44 forks source link

move spin function into update function, add ros::ok to update loop #6

Closed cyborg-x1 closed 9 years ago

cyborg-x1 commented 9 years ago

I figured out when you add additional functionality to the node, it is almost never called, because it mostly stays in the update function loop for me. Also terminating the node is mostly done by SIGTERM because it does never leave it. So I also added ros::ok() to the while loop in the update function as well.

jeskesen commented 9 years ago

great! thank you.