How to specify xmlrpc port number in roscpp?

asked 2020-01-29 13:43:55 -0500

ROSer gravatar image

For my application, I need to specify xmlrpc and TCPROS port number within my network.

I found a method in rospy to specify ports attached below, but none for roscpp.

init_node(name, argv=None, anonymous=False, log_level=None, disable_rostime=False, disable_rosout=False, disable_signals=False, xmlrpc_port=0, tcpros_port=0)

Is there a similar method in roscpp to specify xmlrpc port and tcpros port?

Thanks.

edit retag flag offensive close merge delete

Comments

I need to specify xmlrpc and TCPROS port number

please note: the rospy.init_node(..) you mention only allows you to specify the port your node will listen on for connections. It does not support specifying which ports it is allowed to use in general.

I don't believe that is supported.

gvdhoorn gravatar image gvdhoorn  ( 2020-01-29 14:01:02 -0500 )edit

I did some preliminary test by setting non-zero xmlrpc_port in rospy.init_node, and the slave port number is specified. I believe it worked in rospy.

ROSer gravatar image ROSer  ( 2020-01-29 14:10:57 -0500 )edit

I was specifically referring to the TCPROS part.

gvdhoorn gravatar image gvdhoorn  ( 2020-01-29 14:11:57 -0500 )edit