Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 84

custom message generation causes problems when compiling my code

$
0
0
Hello guys, I have tried to find if someone has the same problem in the forum but it does not seem that way. Basically I want to create a custom ros message to publish something from my own package. So far so good. I have created a msg folder in my package and added a file ("sla_tracker.msg") containing: float64 s float64 sd string status I have followed the tutorial given [here](http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv#Creating_a_msg) everything worked without a problem, except to the last point: changing: # generate_messages( # DEPENDENCIES # std_msgs # ) to: generate_messages( DEPENDENCIES std_msgs ) as soon as I do this when using "catkin_make" it is like the header file of my cpp file does not exist which then obviously leads to a lot of missing declarations an other includes which were not done. I hope I could explain my problem properly. Maybe the custom message must be created in a separate catkin package and can not be created in the package in which I need the custom message? I am using ros hydro on ubuntu 12.04

Viewing all articles
Browse latest Browse all 84

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>