DavidFernandezChaves / Detectron2_ros

A ROS Node for detecting objects using Detectron2.
MIT License
51 stars 23 forks source link

Gettting ERROR: Cannot load message class for [detectron2_ros/Result]. Are your messages built? #3

Closed sisaha9 closed 3 years ago

sisaha9 commented 3 years ago

I am not sure why it keeps giving this error message. I did run catkin_make and I am able to run it and view the segmentation results in Rviz with visualizations. But I can't get the segmentation information out for some reason. Am I supposed to be changing something else in the CMakes/package.xml?

DavidFernandezChaves commented 3 years ago

It seems that for some reason ROS does not find the message type "Detectron2/result". Does the catking_make give error? You should not change anything in the package.xml file.

sisaha9 commented 3 years ago

I realized the issue. I hadn't sourced my setup.bash (didn't think it was needed if I had sourced once and the message was being generated by the node). Thanks for the prompt reply though!

VbsmRobotic commented 2 years ago

Hi, I have sourced the detectron2 environment and also sourced the catkin workspace, but I face the same issue in rqt (topic: /detectron2_ros/result can not get message class for type "detectron2_ros/Result"). I have already checked Cmakelist the custom msg already has been added there. Is there any advice about this error?