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

Revision history [back]

I was able to get IOIO to work with my NodeMain implementation, by using the low level IOIO instance exposed by

IOIO ioioboard = IOIOFactory.create();

and I initialised this in the classes onCreate() method.

From then on the ioioboard can be used to expose pins and the like in the normal way, and used in classes that wrap up board functionality into drivers as per Ben Ytai's IOIO Basics Page. Instead of utilising an IOIOService or Activity which have their own looper function. I utilised a publisher's CancellableLoop to poll and use the IOIO in a similar way. Notably that you would want to use a publisher with the IOIO in order to expose the information collected to other nodes.

I was able to get IOIO to work with my NodeMain implementation, by using the low level IOIO instance exposed by

IOIO ioioboard = IOIOFactory.create();

and I initialised this in the classes onCreate() method.

From then on the ioioboard can be used to expose pins and the like in the normal way, and used in classes that wrap up board functionality into drivers as per Ben Ytai's IOIO Basics Page. Page. Instead of utilising an IOIOService or Activity which have their own looper function. I utilised a publisher's CancellableLoop to poll and use the IOIO in a similar way. Notably that you would want to use a publisher with the IOIO in order to expose the information collected to other nodes.

I was able to get IOIO to work with my NodeMain implementation, by using the low level IOIO instance exposed by

IOIO ioioboard = IOIOFactory.create();

and I initialised this in the classes onCreate() method.

From then on the ioioboard can be used to expose pins and the like in the normal way, and used in classes that wrap up board functionality into drivers as per Ben Ytai's IOIO Basics Page. Instead of utilising an IOIOService or Activity which have their own looper function. I utilised a publisher's CancellableLoop to poll and use the IOIO in a similar way. Notably that you would want to use a publisher with the IOIO in order to expose the information collected to other nodes.

Otherwise if using the IOIO as a controller you could utilise the onStart() method to initialise the hardware variables and update them within a subscriber listener when new information is availble.