Robotics StackExchange | Archived questions

changing the port on rosserial_embeddedlinux node results in segmentation fault?

running the HelloRos example in rosserial_embeddedlinux package on Raspberry Pi, Raspbian.

if default port is used, compiles and runs OK

when adding port number to path like so: nh.initNode(192.168.1.101:114411)

results in immediate segmentation fault..

how can the port number be added to the initNode call?

Quoted from UPenn Publisher example:

NodeHandle.initNode() accepts arguments like:

/dev/ttyUSB1 uses the designated serial port for messages to rosserialpython 192.168.1.2 connects to rosserialpython at the specified IP address on the default port 11411 192.168.1.2:12345 connects to rosserial_python at the specified IP address on the specified port number

Asked by imbakes on 2014-09-14 13:58:20 UTC

Comments

Answers

I think your port number is to big, as far as i know port is an 16 bit number and will stop at 65535.

Asked by krl101 on 2018-12-14 05:03:55 UTC

Comments