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

rosserial_arduino IDE error

asked 2014-07-04 11:57:57 -0500

tuuzdu gravatar image

I install ros_lib into the arduino environment. When I try compile HellowWorld, I have error:

 In file included from /home/tuuzdu/sketchbook/libraries/ros_lib/ros/node_handle.h:38:0,
                     from /home/tuuzdu/sketchbook/libraries/ros_lib/ros.h:38,
                     from HelloWorld.pde:6:
    /opt/ros/hydro/include/std_msgs/Time.h:42:18: fatal error: string: No such file or directory
    compilation terminated.

File /opt/ros/hydro/include/std_msgs/Time.h exists.

edit retag flag offensive close merge delete

Comments

1

Did your rosrun rosserial_arduino make_libraries.py call run without errors/warnings? Does Time.h exist somewhere in a subfolder of your /home/tuuzdu/sketchbook/libraries/ros_lib/?

Wolf gravatar image Wolf  ( 2014-07-05 05:05:22 -0500 )edit

I have this problem on 64bit machine and I have not problem on 32bit machine. Both machines with Ubuntu 13.04 and ROS Hydro. On 32bit make_libraries.py creates headers in ros_lib folder: std_msgs, rosserial_msgs and others.But on 64bit not! I try copy header primary-to-secondary, but it hasnt effect

tuuzdu gravatar image tuuzdu  ( 2014-07-06 04:29:10 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-06 01:10:53 -0500

allenh1 gravatar image

Perhaps ROS is not in the path of the utility you are using... But the error seems to be pointing to the following segment of Time.h:

#ifndef STD_MSGS_MESSAGE_TIME_H
#define STD_MSGS_MESSAGE_TIME_H


#include <string> //This line here is line 42
#include <vector>
#include <map>

#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include <ros/message_operations.h>

So I'd say it's got to do with rosserial's PATH. Unfortunately, I'm not an expert on this... I've used it only slightly. If you are launching from the system, try launching from a terminal. Perhaps this is like the issue with QtCreator... You can only use it in a terminal in order to get the right paths linked. Please note that this is simply speculation, though...

Keep us posted! This could definitely be helpful for others in the future.

edit flag offensive delete link more

Comments

Yes, I launch Arduino IDE from terminal with all necessary environment variables. Please see comment above.

tuuzdu gravatar image tuuzdu  ( 2014-07-06 04:32:44 -0500 )edit

did you get a solution to this?

fyi gravatar image fyi  ( 2020-12-28 05:19:12 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-07-04 11:57:57 -0500

Seen: 1,561 times

Last updated: Jul 06 '14