Ask Your Question
0

Arduino Tutorial - Adding Custom Messages [closed]

asked 2013-02-06 15:58:57 -0500

CharlieD gravatar image

updated 2013-02-09 11:43:08 -0500

Ubuntu 12.04 Fuerte

When attempting to run the Adding Custom Messages(Generating Message Header File) tutorial using these commands

c@c-Inspiron-1525:~$ source /home/c/fuerte_workspace/setup.bash

c@c-Inspiron-1525:~$ rosrun rosserial_client make_library.py ~/sketchbook/libraries crazy_msgs

It starts to run then I get this error

Exporting to /home/c/sketchbook/libraries/ros_lib

Exporting crazy_msgs Traceback (most recent call last): File "/opt/ros/fuerte/stacks/rosserial/rosserial_client/src/rosserial_client/make_library.py", line 590, in <module> lm = ArduinoLibraryMaker(msg_package) File "/opt/ros/fuerte/stacks/rosserial/rosserial_client/src/rosserial_client/make_library.py", line 535, in __init__ self.pkg_dir = roslib.packages.get_pkg_dir(package) File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/packages.py", line 176, in get_pkg_dir raise InvalidROSPkgException("Cannot locate installation of package %s: %s. ROS_ROOT[%s] ROS_PACKAGE_PATH[%s]"%(package, rperr.strip(), ros_root, ros_package_path)) roslib.packages.InvalidROSPkgException: Cannot locate installation of package crazy_msgs: [rospack] Error: stack/package crazy_msgs not found. ROS_ROOT[/opt/ros/fuerte/share/ros] ROS_PACKAGE_PATH[/home/c/fuerte_workspace/turtlebot:/home/c/fuerte_workspace/sandbox:/opt/ros/fuerte/stacks:/opt/ros/fuerte/share:/opt/ros/fuerte/share/ros]

** Update ** tried rosmake, executed successfully, but got the same error for the rosrun rosserial_client make_library.py ~/sketchbook/libraries crazy_msgs see below


rosmake rosserial_arduino [ rosmake ] rosmake starting...
[ rosmake ] Packages requested are: ['rosserial_arduino']
[ rosmake ] Logging to directory /home/c/.ros/rosmake/rosmake_output-20130209-173626 [ rosmake ] Expanded args ['rosserial_arduino'] to: ['rosserial_arduino']
[rosmake-0] Starting >>> std_msgs [ make ]
[rosmake-0] Finished <<< std_msgs No Makefile in package std_msgs
[rosmake-0] Starting >>> geometry_msgs [ make ]
[rosmake-1] Starting >>> rosserial_msgs [ make ]
[rosmake-0] Finished <<< geometry_msgs No Makefile in package geometry_msgs
[rosmake-0] Starting >>> sensor_msgs [ make ]
[rosmake-0] Finished <<< sensor_msgs No Makefile in package sensor_msgs
[rosmake-0] Starting >>> nav_msgs [ make ]
[rosmake-0] Finished <<< nav_msgs No Makefile in package nav_msgs
[rosmake-1] Finished <<< rosserial_msgs ROS_NOBUILD in package rosserial_msgs
[rosmake-1] Starting >>> bullet [ make ]
[rosmake-1] Finished <<< bullet ROS_NOBUILD in package bullet
[rosmake-1] Starting >>> roslang [ make ]
[rosmake-1] Finished <<< roslang No Makefile in package roslang
[rosmake-1] Starting >>> roscpp [ make ]
[rosmake-0] Starting >>> rosconsole [ make ]
[rosmake-0] Finished <<< rosconsole No Makefile in package rosconsole
[rosmake-0] Starting >>> angles [ make ]
[rosmake-1] Finished <<< roscpp No Makefile in package roscpp
[rosmake-1] Starting >>> rospy [ make ]
[rosmake-0] Finished <<< angles ROS_NOBUILD in package angles
[rosmake-0] Starting >>> rostest [ make ]
[rosmake-0] Finished <<< rostest No Makefile in package rostest
[rosmake-1] Finished <<< rospy No Makefile in package rospy
[rosmake-1] Starting >>> roswtf [ make ]
[rosmake-0] Starting >>> message_filters [ make ]
[rosmake-0] Finished <<< message_filters No Makefile in package message_filters [rosmake-1] Finished <<< roswtf No Makefile in package roswtf
[rosmake-1] Starting >>> tf [ make ]
[rosmake-1] Finished <<< tf ROS_NOBUILD in package tf
[rosmake-1] Starting >>> rosserial_client [ make ]
[rosmake-1] Finished <<< rosserial_client ROS_NOBUILD in package rosserial_client [rosmake-1] Starting >>> rosserial_arduino [ make ]
[rosmake-1] Finished <<< rosserial_arduino ROS_NOBUILD in package rosserial_arduino [ rosmake ] Results:
[ rosmake ] Built 17 packages with 0 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /home/c/.ros/rosmake/rosmake_output-20130209-173626

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2014-11-17 14:13:42.949483

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-02-07 11:48:51 -0500

IgorZ gravatar image

have you done rosmake in your package? I had similar problem and found this simple solution

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-06 15:58:57 -0500

Seen: 564 times

Last updated: Feb 09 '13