Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

DialogflowResult msg not recognised by rqt #15

Open
Luke1962 opened this issue Feb 1, 2020 · 2 comments
Open

DialogflowResult msg not recognised by rqt #15

Luke1962 opened this issue Feb 1, 2020 · 2 comments

Comments

@Luke1962
Copy link

Luke1962 commented Feb 1, 2020

Great Module.
I successfully installed the module on Ubuntu 18.04 with ros melody with
catkin_make install -DCATKIN_WHITELIST_PACKAGES="dialogflow_ros"

Interface with dialogflow is ok. and node is working
However when I run rqt , inside Topic monitor window, in corrispondence with "/dialogflow_client/results",in the column "Value", instead of 'not monitored' , I see
"can not get message class for thpe "dialogflow_ros/DialogflowResults"

Any suggestion?
p.s. package.xml and CMakeLists.txt have not been modified.

@piraka9011
Copy link
Owner

"can not get message class for type "dialogflow_ros/DialogflowResults"

This issue occurs when a package (in this case RQt) does not know where to find certain message types.
You should be running RQt in a terminal where the workspace you used to build dialogflow_ros is sourced.
That way, RQT can find the DialogflowResults message type and display it.

@Luke1962
Copy link
Author

Luke1962 commented Feb 10, 2020

Hi,
I' know the need for sourcing.
I put both

source      /opt/ros/melodic/setup.bash
source      /home/luca/ros/devel/setup.bash

inside .bashrc , so they are run in every terminal

I've also rebuilt all nodes with catkin_make, but I get the same message.
May be is something related to the fact that I run the node under Python3 while rqt is under Python2?
This is the message I get when I launch rqt

luca@ENVY:~/ros$ rqt
/usr/local/lib/python3.6/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
************************************************************
You are running Setuptools on Python 2, which is no longer
supported and
>>> SETUPTOOLS WILL STOP WORKING <<<
in a subsequent release (no sooner than 2020-04-20).
Please ensure you are installing
Setuptools using pip 9.x or later or pin to `setuptools<45`
in your environment.
If you have done those things and are still encountering
this message, please comment in
https://github.com/pypa/setuptools/issues/1458
about the steps that led to this unsupported combination.
************************************************************
  sys.version_info < (3,) and warnings.warn(pre + "*" * 60 + msg + "*" * 60)
TopicInfo.__init__(): topic "/dialogflow_client/results": can not get message class for type "dialogflow_ros/DialogflowResult"

I cannot imagine what I could have been missed...

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

No branches or pull requests

2 participants