<< return to Pixycam.com

Pixy interaction with ROS

Hello I want to integrate Pixy with ROS and found two nodes based on this link


So far both are working (tested with ROS Kinetic on top of a rpi 3) but exclusively, the erle one publishes Image data and the pixy_ros the detected blocks.

Is there a way to integrate both; I need both nodes running within ROS, so far I get an error when the second node tries to connect to USB.

When erle_pixy is the second one

PixyCam::PixyCam()
void PixyCam::run()
void PixyCam::checkCamera()
runtime_error: Unable to open USB device.

and When pixy_ros is the second one

[FATAL] [1504966598.824200080]: PixyNode - PixyNode - Failed to open with the USB error -6!
[FATAL] [1504966598.824393934]: BREAKPOINT HIT
file = /home/pi/catkin_ws/src/pixy_ros/src/pixy_node.cpp
line=89

Any comment would be appreciated, regards

Hi Luciano,

unfortunately we don’t have a ton of experience with ROS - here are some threads I found from users here who have gotten it working:

http://www.cmucam.org/boards/9/topics/4648?r=4665#message-4665

and

http://www.cmucam.org/boards/9/topics/3900

It sounds like maybe what you need to do is combine the code from both the nodes you’re working with into a single node.

Hope this helps!

Best,
Jesse