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

Cannot load mesage class / messages not being built #12

Open
enricoande opened this issue Dec 15, 2020 · 1 comment
Open

Cannot load mesage class / messages not being built #12

enricoande opened this issue Dec 15, 2020 · 1 comment

Comments

@enricoande
Copy link

I am trying to use ros-imc-broker as a bridge between ROS and Dune. At this stage, I am running simulations in Dune (e.g. lauv-xplore-1.ini) and intend to subscribe to the generated messages, e.g. /IMC/In/Temperature, IMC/In/Depth, IMC/In/Pressure, etc.

I am using ROS Noetic on Ubuntu 20.04. I had to update the code to C++11, by replacing lines 61 & 63 of params_changer_node.cpp as follows:

61  static constexpr float c_entity_update = 60.0f;
63  static constexpr float c_entity_deactivation = 200.0f;

I am not compiling the code in a docker container, but rather as a normal ROS package. I am also running dune and neptus for the simulations.

With rostopic list, I can see the full list of messages. By running the Dune simulator on its own (i.e. without initialising a simulated deployment in Neptus), rqt_graph shows that the /IMC/In/Temperature message is being passed by /ros_imc_broker_node to the /settings node.

Screenshot from 2020-12-15 09-14-17

However, running
rostopic echo /IMC/In/Temperature
returns the following error:
ERROR: Cannot load message class for [imc/Temperature]. Are your messages built?

I would be tempted to update the CMakeList.txt file, but before going down that route, I was just wondering if you could quickly point out to me where I am going wrong?

Many thanks!

@pettsol
Copy link

pettsol commented Nov 30, 2021

Bump on this one.

I am also getting "ERROR: Cannot load message class for [message]. Are your messages built?" Did anyone find a solution to this problem? I noticed someone had a similar problem a few years back (#1 ), but adding -pthread to the CMake file does not work. I am also on Ubuntu 20.04 & ROS Noetic, trying to bridge DUNE and ROS.

Any ideas?

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

No branches or pull requests

2 participants