Open machinekoder opened 6 years ago
Thanks to https://github.com/ros/ros_comm/blob/melodic-devel/clients/rospy/src/rospy/client.py#L290-L295 the anonymous argument of rospy.init_node is always overwritten by roslaunch. This is in particular problematic when creating a ROS node inside a Python process.
anonymous
rospy.init_node
roslaunch
I suggest adding a force_anonymous argument to init_node for these (probably rare) cases where node anonymity is wanted, regardless of the roslaunch configuration.
force_anonymous
init_node
also see https://answers.ros.org/question/297918/rospyinit_node-in-multiprocessingprocess/?answer=297921#post-id-297921
Thanks to https://github.com/ros/ros_comm/blob/melodic-devel/clients/rospy/src/rospy/client.py#L290-L295 the
anonymous
argument ofrospy.init_node
is always overwritten byroslaunch
. This is in particular problematic when creating a ROS node inside a Python process.I suggest adding a
force_anonymous
argument toinit_node
for these (probably rare) cases where node anonymity is wanted, regardless of theroslaunch
configuration.