Ask Your Question
0

Why am I getting: can't locate node [rosout] in package [rosout]

asked 2014-06-27 06:57:26 -0500

ct2034 gravatar image

I am trying to run a rostest from catkin which was added with add_rostest()

It runs fine when started with a rostest call directly.

But when I try to run it from catkin I get ...

ERROR: failed to start core service [/rosout]   File "/usr/lib/python2.7/unittest/case.py", line 327, in run
    testMethod()   File "/home/aub-ch/ros/hydro_ws/src/my_navigation_test/rostest/tools/rostest/src/rostest/runner.py", line 121, in fn
    succeeded, failed = self.test_parent.launch()   File "/home/aub-ch/ros/hydro_ws/src/my_navigation_test/rostest/tools/rostest/src/rostest/rostest_parent.py", line 81, in launch
    return self.runner.launch()   File "/home/aub-ch/ros/hydro_ws/src/my_navigation_test/rostest/tools/roslaunch/src/roslaunch/launch.py", line 644, in launch
    self._setup()   File "/home/aub-ch/ros/hydro_ws/src/my_navigation_test/rostest/tools/roslaunch/src/roslaunch/launch.py", line 621, in _setup
    self._launch_core_nodes()   File "/home/aub-ch/ros/hydro_ws/src/my_navigation_test/rostest/tools/roslaunch/src/roslaunch/launch.py", line 500, in _launch_core_nodes
    raise RLException("failed to start core service [%s]"%node_name)

And the log contains ...

[roslaunch][INFO] 2014-06-27 13:39:02,666: ... preparing to launch node of type [rosout/rosout]
[roslaunch][INFO] 2014-06-27 13:39:02,666: create_node_process: package[rosout] type[rosout] machine[Machine(name[] env_loader[None] address[localhost] ssh_port[22] user[None] assignable[True] timeout[10.0])] master_uri[http://cob-stud-5:22422/]
[roslaunch][INFO] 2014-06-27 13:39:02,667: process[rosout-1]: env[{'ROS_DISTRO': 'hydro', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'ORBIT_SOCKETDIR': '/tmp/orbit-aub-ch', 'LESSOPEN': '| /usr/bin/lesspipe %s', 'XDG_SEAT_PATH': '/org/freedesktop/DisplayManager/Seat0', 'CPATH': '/home/aub-ch/ros/hydro_ws/devel/include:/opt/ros/hydro/include', 'LOGNAME': 'aub-ch', 'USER': 'aub-ch', 'WORKSPACE': '/home/aub-ch', 'GNOME_KEYRING_CONTROL': '/tmp/keyring-kXgmHb', 'HOME': '/home/aub-ch', 'ROSCONSOLE_CONFIG_FILE': '/home/aub-ch/ros/hydro_ws/src/my_navigation_test/rostest/tools/rosconsole/config/rosconsole.config', 'LD_LIBRARY_PATH': '/home/aub-ch/ros/hydro_ws/devel/lib:/opt/ros/hydro/lib', 'MAKEFLAGS': 's', 'SSH_AGENT_PID': '17655', 'LANG': 'en_US.UTF-8', 'TERM': 'xterm', 'SHELL': '/bin/bash', 'XDG_SESSION_PATH': '/org/freedesktop/DisplayManager/Session32', 'XAUTHORITY': '/home/aub-ch/.Xauthority', 'SESSION_MANAGER': 'local/cob-stud-5:@/tmp/.ICE-unix/17620,unix/cob-stud-5:/tmp/.ICE-unix/17620', 'SHLVL': '1', 'LESSCLOSE': '/usr/bin/lesspipe %s %s', 'MANDATORY_PATH': '/usr/share/gconf/ubuntu.mandatory.path', 'TERMINATOR_UUID': 'urn:uuid:48de640c-fa22-4dc5-ab40-9015e574b201', 'ROS_LOG_FILENAME': '/home/aub-ch/.ros/log/rostest-cob-stud-5-3305.log', 'COMPIZ_CONFIG_PROFILE': 'ubuntu', 'WINDOWID': '50331652', 'EDITOR': 'gedit', 'GIO_LAUNCHED_DESKTOP_FILE_PID': '18031', 'GPG_AGENT_INFO': '/tmp/keyring-kXgmHb/gpg:0:1', 'BAG_PATH': '/home/aub-ch/bagFiles', 'BAG_BATH': '/home/aub-ch/bagFiles', 'PATH': '/home/aub-ch/ros/hydro_ws/devel/bin:/opt/ros/hydro/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games', 'MAKELEVEL': '4', 'GIO_LAUNCHED_DESKTOP_FILE': '/usr/share/applications/terminator.desktop', 'CMAKE_PREFIX_PATH': '/home/aub-ch/ros/hydro_ws/devel:/opt/ros/hydro', 'PYTHONPATH': '/home/aub-ch/ros/hydro_ws/devel/lib/python2.7/dist-packages:/opt/ros/hydro/lib/python2.7/dist-packages', 'SSH_AUTH_SOCK': '/tmp/keyring-kXgmHb/ssh', 'ROS_ROOT': '/opt/ros/hydro/share/ros', 'GDMSESSION': 'ubuntu', 'GNOME_KEYRING_PID': '17609', 'PKG_CONFIG_PATH': '/home/aub-ch/ros/hydro_ws/devel/lib/pkgconfig:/opt/ros/hydro/lib/pkgconfig', 'ROS_PACKAGE_PATH': '/home/aub-ch/ros/hydro_ws/src:/opt/ros/hydro/share:/opt/ros/hydro/stacks', 'XDG_CURRENT_DESKTOP': 'Unity', 'ROS_TEST_RESULTS_DIR': '/home/aub-ch/ros/hydro_ws/build/test_results', 'DBUS_SESSION_BUS_ADDRESS': 'unix:abstract=/tmp/dbus-qw7LKVpfqU,guid=1e429c64037f84d803149de60028e673', '_': '/opt/ros/hydro/bin/catkin_make', 'XDG_SESSION_COOKIE ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-07-02 04:20:36 -0500

ct2034 gravatar image

There was an issue with my setup. The ROS_PACKAGE_PATH was somehow in the wrong order. (system folders before workspace) (-> https://github.com/ros/catkin/issues/455 )

But as described in the linked issue, it was due to multiple sourcing of /opt/ros/hydro/setup.bash

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-06-27 06:57:26 -0500

Seen: 1,591 times

Last updated: Jul 02 '14