Ask Your Question
0

rosserial_arduino IDE ARDUINO error

asked 2013-07-24 07:33:17 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

hi, i'm workin' with the Arduino target, i installed the Arduino IDE , and also installed rosserial_arduino and put the ros_lib on the sketchbook file. i try to run , i mean compile the examples, in these case the blink example and i got these error:

Blink.pde:-1: error: ‘ros’ has not been declared
Blink.pde:-1: error: expected constructor, destructor, or type conversion before ‘nh’
Blink.pde:-1: error: expected ‘,’ or ‘...’ before ‘::’ token
Blink.pde:-1: error: ISO C++ forbids declaration of ‘std_msgs’ with no type
Blink.pde:-1: error: ‘ros’ has not been declared
Blink.pde:-1: error: expected constructor, destructor, or type conversion before ‘<’ token
Blink.cpp: In function ‘void setup()’:
Blink.pde:-1: error: ‘nh’ was not declared in this scope
Blink.pde:-1: error: ‘sub’ was not declared in this scope
Blink.cpp: In function ‘void loop()’:
Blink.pde:-1: error: ‘nh’ was not declared in this scope

thnks for any help i can get

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2013-08-18 21:04:34 -0500

dan gravatar image

ros_lib needs to be in the /libraries folder of the sketchbook folder. Did you put it there? Seems like it may not be seeing ros.h If you try to import the library from the arduino IDE menu, does the ros_lib folder show up in the list? If not, then it is not in the correct location.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-07-24 07:33:17 -0500

Seen: 355 times

Last updated: Aug 18 '13