the frequence of b0 spin
the frequence of b0 spin
I want to know the frequence of b0 node when I use the function ``b0_node.spin()`` and how to change it.
Re: the frequence of b0 spin
Are you taking about the BlueZero plugin? Or about which language binding for BlueZero?
Re: the frequence of b0 spin
In the C API, b0_node_spin() calls b0::Node::spin() without arguments, so the default spin rate (10Hz as of blue zero 1.x) will be used.
You can implement a custom spin loop to obtain a different rate or spin policy:
You can implement a custom spin loop to obtain a different rate or spin policy:
Code: Select all
while(!b0_node_shutdown_requested(pnode))
{
b0_node_spin_once(pnode);
usleep(15000);
}