Okay, this is a little weird to me. I have two issues:
First, I connected the erle brain to a keyboard and a screen via HDMI cable. From the shell, I tried to run
roslaunch mavros_extras px4flow.launch
and it worked! A new node /px4flow was created and messages were being published into the /px4flow/xyz topics.
However(!), when I tried to do the same with an ssh connection, I get the same error as I posted before.
Second, it only works if the px4flow is connected to the erle brain using a USB port and not the i2c port. When the px4flow is connected to the i2c port, I get the following error message:
... ... ...
[ INFO] [1485364668.819254969]: FCU URL: serial:///dev/ttyACM0:921600
[ INFO] [1485364668.829024160]: serial0: device: /dev/ttyACM0:921600 @ 921600 bps
[FATAL] [1485364668.838528716]: DCU: DeviceError:serial:open: No such file or directory
================================================================================REQUIRED process [px4flow-1] has died!
log file: /home/pi/.ros/log/18a1c1f6-e312-11e6-9840-b827eb7eb38e/px4flow-1*.log
[px4flow-1] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
So the node is actually looking for a
/dev/ttyACM0 port, which is USB, and not an i2c port. Is it necessary to modify the code for the startup of this node? If yes, where and what has to be changed?
Maybe this is clear to many of you, but I am still new to this, so if this question is very basic, I apologize in advance.