Error Dependency Std_msgs Cannot Be Found
1 ●4 ●4 ●5 updated 2011-06-27 18:25:01 -0500 tfoote 37671 ●72 ●266 ●369 http://www.ros.org/ hey all, i'm following the ROS tutorial 3 in which it teaches how to create a new package which has dependencies. when i enter the following: $ roscreate-pkg beginner_tutorials roscpp rospy std_msgs terminal shoots back: ERROR: dependency [roscpp] cannot be found note : i've updated the ROS_PACKAGE_PATH variable. i have verified manually and (with rospack find also) that roscpp actually exists in my filesystem. its just that roscreate cant seem to find it. any help would be greatly appreciated. edit retag flag offensive close merge delete Comments1 in the terminal you're trying to roscreate-pkg, can you roscd roscpp. If not your package path is not set in that terminal mmwise( 2011-06-13 12:22:40 -0500 )edit can you describe your install setup better? i.e. what is your ROS_ROOT, what is your ROS_PACKAGE_PATH, and where is roscpp? can you also verify that you can run "rospack find roscpp", then run the roscreate-pkg command and still get a failure. kwc( 2011-06-13 13:13:40 -0500 )editadd a comment 2 answers Sort by » oldest newest most voted 0 answered 2011-06-20 19:14:24 -0500 jintgeorge 16 I suppose your ROS_PACKAGE_PATH is not set accordingly. 1) Close your terminal and open again which will reload your ~/.ros to default one. 2) Run the following again $ cd ~/ $ mkdir ros_tutorials $ export ROS_PACKAGE_PATH=~/ros_tutorials:$ROS_PACKAGE_PATH 3) To verify whether your PATH set correctly, try 'roscd roscpp'. If it changes to the roscpp folder then path file is set correctly. 4) Now try creating package with dependencies you wish. Hope this would help you. Note: I am a newbie in ROS, please let me know if there is something wrong. edit flag offensive delete link more Comments thanks! that was precisely the problem. now I directly edit my .bashrc file instead of updating my ROS_PACKAGE_PATH everytime i open a mew terminal. surfexceltide( 2011-06-22 11:19:05 -0500 )editadd a comment 4 answered 2011-06-14 07:37:27 -0500 Asomerville 2368 ●66 ●91 ●127 http://www.resquared.com/ If you installed diamondback via deb packages, to setup your environment use: . /opt/ros/diamondback/setup.bash edit flag offensive delete link more add a comment Your Answer Please start posting anonymously - your entry will be published after you log in or create a new account. Add Answer Question Tools Follow subscribe to rss feed Stats Asked
-0500 trc123 5 ●2 ●2 ●5 updated 2014-08-05 04:45:53 -0500 So I'm trying to make a publisher to publish some data from a speed controller and I know how I can get the data. I decided to use a custom message almost the same to the Pose.msg in turtlesim (with http://answers.ros.org/question/10245/cannot-find-roscpp-when-following-tutorial-3/ fewer fields). However whenever I run catkin make I get this error. /home/ros/catkin_ws/src/bot/src/wheeldata.cpp: In function ‘int main(int, char**)’: /home/ros/catkin_ws/src/bot/src/wheeldata.cpp:19:36: error: ‘Pose’ was not declared in this scope /home/ros/catkin_ws/src/bot/src/wheeldata.cpp:19:36: note: suggested alternative: /home/ros/catkin_ws/devel/include/bot/Pose.h:85:45: note: ‘bot::Pose’ /home/ros/catkin_ws/src/bot/src/wheeldata.cpp:19:59: error: no matching function for call to ‘ros::NodeHandle::advertise(const http://answers.ros.org/question/188934/message-type-cant-be-found-with-catkin_make/ char [10], int)’ /home/ros/catkin_ws/src/bot/src/wheeldata.cpp:19:59: note: candidates are: /opt/ros/hydro/include/ros/node_handle.h:236:15: note: template
Sign in Pricing Blog Support Search GitHub This repository Watch https://github.com/ros/genmsg/issues/1 15 Star 18 Fork 23 ros/genmsg Code Issues 1 Pull requests 0 Projects 0 Pulse Graphs New issue Userfriendly error message for missing https://groups.google.com/d/topic/ros-japan-users/pJI9GW23uew DEPENDENCIES in generate_messages #1 Closed mkjaergaard opened this Issue Jan 13, 2012 · 5 comments Projects None yet Labels None yet error dependency Milestone No milestone Assignees dirk-thomas 4 participants ROS core stacks member mkjaergaard commented Jan 13, 2012 If the correct dependencies are not specified in generate_messages macro the genmsg will spit out a confusing python error. This should give a usefull error like: "actionlib_msgs not found when error dependency std_msgs generating for actionlib. Did you forget to specify actionlib_msgs in generate_messages() DEPENDENCIES" or something similar.... The current error message is: --- Error parsing token: @{ import sys, genmsg, os genmsg.base.log_verbose('GENMSG_VERBOSE' in os.environ) # put this path at the beginning sys.path.insert(0, genmsg_python_path) import genmsg.deps msg_deps = {} for m in messages: msg_deps[m] = genmsg.deps.find_msg_dependencies(pkg_name, m, dep_search_paths) srv_deps = {} for s in services: srv_deps[s] = genmsg.deps.find_srv_dependencies(pkg_name, s, dep_search_paths) } if __name__ == '__main__': main() File "/usr/bin/empy", line 3290, in main invoke(sys.argv[1:]) File "/usr/bin/empy", line 3273, in invoke interpreter.wrap(interpreter.file, (file, name)) File "/usr/bin/empy", line 2273, in wrap self.fail(e) File "/usr/bin/empy", line 2264, in wrap apply(callable, args) File "/usr/bin/empy", line 2337, in file self.safe(scanner, done, locals) File "/usr/bin/empy", line 2379, in safe self.parse(scanner, locals) File "/usr/bin/empy", line 2400, in parse token.run(self, locals) File "/usr/bin/empy", line 1410, in run interpreter.execute(self.code, lo
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen