ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

Rosserial fails to generate rosserial_msgs library

asked 2014-10-29 10:15:47 -0500

Overv gravatar image

updated 2014-10-29 11:02:07 -0500

I've followed this tutorial to set up rosserial for Arduino:

http://wiki.ros.org/rosserial_arduino...

But once I get to the step where I generate the libraries for the Arduino with the command

rosrun rosserial_arduino make_libraries.py .

I get the following output at the end:

*** Warning, failed to generate libraries for the following packages: ***
    hector_quadrotor_controller_gazebo (missing dependency)
    rosserial_msgs
    map_msgs
    rosserial_arduino

The output above that doesn't tell me anything:

Exporting rosserial_msgs

  Messages:
    TopicInfo,Exporting std_srvs

  Services:
    Empty,

...

Exporting map_msgs

  Messages:
    OccupancyGridUpdate,PointCloud2Update,ProjectedMapInfo,ProjectedMap,

  Services:
    SetMapProjections,GetPointMapROI,ProjectedMapsInfo,Exporting tf2_msgs

  Messages:
LookupTransformActionResult,LookupTransformAction,LookupTransformActionGoal,LookupTransformFeedback,TFMessage,LookupTransformActionFeedback,TF2Error,LookupTransformGoal,LookupTransformResult,

  Services:
    FrameGraph,

...

Exporting rosserial_arduino

  Messages:
    Adc,Exporting hector_gazebo_plugins

  Services:
    SetBias,

I'm not immediately interested in the first and third libraries, but the second and fourth are a problem, because they make it impossible to use rosserial. How do I solve this?

edit retag flag offensive close merge delete

Comments

Please scroll up and check if there is any error message there it was attempted to create the rosserial_msgs/rosserial_arduino msgs....

Wolf gravatar image Wolf  ( 2014-10-29 10:36:03 -0500 )edit

@Wolf See the updated question.

Overv gravatar image Overv  ( 2014-10-29 11:01:41 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2014-10-30 04:16:41 -0500

Overv gravatar image

I solved the problem by running

source /opt/ros/indigo/setup.bash

again. After that, generating libraries worked fine.

edit flag offensive delete link more

Comments

Hey I am having the same problem. I run source /opt/ros/groovy/setup.bash, but I get this when I generate libraries:

IOError: [Errno 13] Permission denied: '/opt/ros/groovy/share/rosserial_arduino/src/ros_lib/duration.cpp'

heng gravatar image heng  ( 2015-03-01 23:50:21 -0500 )edit

I had the same issue. Use the following command inside you <sketchbook>/libraries folder to remove the ros_lib library. rm -rf ros_lib I was able to do this and then run the source command listed above but still ran into the same problem when running the make_libraries.py command from tutorials.

ATXCyborg gravatar image ATXCyborg  ( 2015-06-09 21:33:09 -0500 )edit
0

answered 2018-07-16 05:37:09 -0500

Goki gravatar image

updated 2018-07-16 18:08:00 -0500

jayess gravatar image

I suggest you to add the following to your package.xml file and then try sourcing the shell and rebuilding the workspace. I have been through almost same kinda issue. This will automatically create a ros_lib with your required libraries with regards to the packages you already have.

package.xml

<build_depend> rosserial_arduino /build_depend>
<build_depend>rosserial_client /build_depend>
<build_export_depend>rosserial_arduino /build_export_depend>
<build_export_depend>rosserial_client /build_export_depend>
<exec_depend>rosserial_arduino /exec_depend
<exec_depend>rosserial_client /exec_depend>

Note: Please add "<" before exec_depend> and /exec_depend> on each of above lines as they couldn't be typed from my end

Hope this would work. Cheers!

edit flag offensive delete link more

Comments

To get the < working you should paste the code into the text editor, highlight the code, then click the 101010 button.

jayess gravatar image jayess  ( 2018-07-16 18:08:30 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2014-10-29 10:15:47 -0500

Seen: 1,683 times

Last updated: Jul 16 '18