[autoware.auto] udp driver bind error
Hello everyone,
I'm working with the AutowareAuto percetion stack https://gitlab.com/autowarefoundation/autoware.auto/AutowareAuto in ros2-dashing on an Ubunutu 18.04 machine.
I'm currently trying to rewrite the velodyne vlp-16 driver to use with a different lidar sensor. The configuration works similar with a .param.yaml file where i define 'ip' and 'port' of the device which are then used in the udp_driver.hpp
The ip-value for the velodyne driver is set to '127.0.0.1' and when I try to change this to an actual device address, say '192.168.1.61' i receive following error:
bind: Cannot assign requested address
Can anyone explain to me where the ip-address is set in the velodyne driver or what pieces I'm missing to use a custom Ip-address in the .param.yaml file?
Thank you for your help, best regards Andreas
Are you using
master
or an older commit? I believe the current version usesros-dashing-ud-pdriver
instead of the previousudp_driver
that was part of the AutowareAuto stack (it got upstreamed to https://github.com/ros-drivers/transp...).Hi Josh, thanks for the fast reply! Currently I'm working on the master branch and the current version uses the driver you mentioned (meaning the /opt/ros/dashing/include/udp_driver/udp_driver_node.hpp) .
So this seems to be not only an Autoware specific problem but rather a ros problem?
BR
To generalize the question:
How to use the Autoware velodyne driver with a real sensor (which default ip=192.168.1.201) or how do you set this ip in the .param.yaml so that no error occurs?
Thank you for your help, BR
One thing to check is whether the driver starts a server or a client. If it's a server, you would configure the IP address on which you want to bind the server port. That would not be the IP of the device, but of a local NIC.