Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[app manager ui] UI does not find app manager #92

Open
bit-pirate opened this issue Apr 19, 2014 · 2 comments
Open

[app manager ui] UI does not find app manager #92

bit-pirate opened this issue Apr 19, 2014 · 2 comments
Assignees
Labels

Comments

@bit-pirate
Copy link
Collaborator

Currently the UI only works with the standalone launcher. When using the app manager in other scenarios, the UI cannot find the app manager.

I guess this is due to different names of the app manager. For example, app manager name in the standalone launcher is app manager. But with Kobuki it is kobuki. Hence the topic/service names change as well, e.g. /app_manager/list_apps and /kobuki/list_apps. If this is the problem, then you need to search for relative names of the topics/services instead of the absolute. For example, search for list_apps instead of /app_manager/list_apps.

@bit-pirate bit-pirate added the bug label Apr 19, 2014
dwlee added a commit that referenced this issue Apr 22, 2014
@dwlee dwlee closed this as completed in 00db2c3 Apr 24, 2014
@bit-pirate bit-pirate reopened this Jun 24, 2014
@bit-pirate
Copy link
Collaborator Author

@dwlee It looks like this issue is back. The qt app manager fails to start, because it cant find /list_rapps. However, that service is available at /turtlebot/list_rapps. Here is the log:

$ rosservice list
/app_manager/get_loggers
/app_manager/set_logger_level
/capability_server/establish_bond
/capability_server/free_capability
/capability_server/get_capability_spec
/capability_server/get_capability_specs
/capability_server/get_interfaces
/capability_server/get_loggers
/capability_server/get_nodelet_manager_name
/capability_server/get_providers
/capability_server/get_remappings
/capability_server/get_running_capabilities
/capability_server/get_semantic_interfaces
/capability_server/reload_capabilities
/capability_server/set_logger_level
/capability_server/start_capability
/capability_server/stop_capability
/capability_server/use_capability
/capability_server_nodelet_manager/get_loggers
/capability_server_nodelet_manager/list
/capability_server_nodelet_manager/load_nodelet
/capability_server_nodelet_manager/set_logger_level
/capability_server_nodelet_manager/unload_nodelet
/interactions/get_interaction
/interactions/get_interactions
/interactions/get_loggers
/interactions/get_roles
/interactions/request_interaction
/interactions/set_interactions
/interactions/set_logger_level
/master/get_loggers
/master/set_logger_level
/rosout/get_loggers
/rosout/set_logger_level
/turtlebot/invite
/turtlebot/list_rapps
/turtlebot/platform_info
/turtlebot/start_rapp
/turtlebot/stop_rapp
/zeroconf/add_listener
/zeroconf/add_service
/zeroconf/list_discovered_services
/zeroconf/list_published_services
/zeroconf/remove_listener
/zeroconf/remove_service
/zeroconf/zeroconf/get_loggers
/zeroconf/zeroconf/set_logger_level
$ rocon_qt_app_manager
Traceback (most recent call last):
  File "/opt/rocon_workspace/src/rocon_qt_gui/rocon_qt_app_manager/src/rocon_qt_app_manager/qt_app_manager.py", line 74, in _change_namespace
    self.qt_app_manager_info._get_apps(self._widget.namespace_cbox.currentText())
  File "/opt/rocon_workspace/src/rocon_qt_gui/rocon_qt_app_manager/src/rocon_qt_app_manager/qt_app_manager_info.py", line 93, in _get_apps
    self._update_apps(service_handle())
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 435, in __call__
    return self.call(*args, **kwds)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 495, in call
    service_uri = self._get_service_uri(request)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 463, in _get_service_uri
    raise ServiceException("service [%s] unavailable"%self.resolved_name)
rospy.service.ServiceException: service [/list_rapps] unavailable
PluginManager._load_plugin() could not load plugin "rocon_qt_app_manager/App Manger":
Traceback (most recent call last):
  File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/plugin_handler.py", line 98, in load
    self._load()
  File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/plugin_handler_direct.py", line 54, in _load
    self._plugin = self._plugin_provider.load(self._instance_id.plugin_id, self._context)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_gui_py/ros_py_plugin_provider.py", line 60, in load
    return super(RosPyPluginProvider, self).load(plugin_id, plugin_context)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/qt_gui/composite_plugin_provider.py", line 71, in load
    instance = plugin_provider.load(plugin_id, plugin_context)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rqt_gui/ros_plugin_provider.py", line 94, in load
    return class_ref(plugin_context)
  File "/opt/rocon_workspace/src/rocon_qt_gui/rocon_qt_app_manager/src/rocon_qt_app_manager/qt_app_manager.py", line 71, in __init__
    self._get_name_spaces()
  File "/opt/rocon_workspace/src/rocon_qt_gui/rocon_qt_app_manager/src/rocon_qt_app_manager/qt_app_manager.py", line 82, in _get_name_spaces
    self.qt_app_manager_info._get_apps(self._widget.namespace_cbox.currentText())
  File "/opt/rocon_workspace/src/rocon_qt_gui/rocon_qt_app_manager/src/rocon_qt_app_manager/qt_app_manager_info.py", line 93, in _get_apps
    self._update_apps(service_handle())
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 435, in __call__
    return self.call(*args, **kwds)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 495, in call
    service_uri = self._get_service_uri(request)
  File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 463, in _get_service_uri
    raise ServiceException("service [%s] unavailable"%self.resolved_name)
ServiceException: service [/list_rapps] unavailable

@kentsommer
Copy link
Collaborator

Once the following have been merged this issue is fixed. The change I made to remove name spacing on standalone launches (pull 245 below) could potentially hide this issue so I tested with name spacing re-enabled and everything runs as intended still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants