Ok now I have sorted out about the std_msgs error by ordering the #include lines and object declarations:
#include <WProgram.h>
#include <stdio.h>
#include "avrRos/String.h"
std_msgs::String call_msg;
std_msgs::String response_msg;
#include "avrRos/Ros.h"
But I still got some errors here:
sprintf(response_msg.data.getRawString(), "You sent : %s", call_msg.data.getRawString());
../main.cpp:35: error: ‘class std_msgs::String’ has no member named ‘data’
../main.cpp:35: error: ‘class std_msgs::String’ has no member named ‘data’
call_msg.data.setMaxLength(30);
response_msg.data.setMaxLength(60);
../main.cpp:50: error: ‘class std_msgs::String’ has no member named ‘data’
../main.cpp:51: error: ‘class std_msgs::String’ has no member named ‘data’
ROS::string data;
../avrRos/String.h:18: error: ‘string’ in namespace ‘ROS’ does not name a type
ROS::string name;
../avrRos/Ros.h:117: error: ‘string’ in namespace ‘ROS’ does not name a type
Hello, I'm following the hello world tutorial and getting build errors particularly with these two lines:
std_msgs::String call_msg;
std_msgs::String response_msg;
../main.cpp:21: error: ‘std_msgs’ has not been declared
../main.cpp:21: error: expected constructor, destructor, or type conversion before ‘call_msg’
../main.cpp:22: error: ‘std_msgs’ has not been declared
../main.cpp:22: error: expected constructor, destructor, or type conversion before ‘response_msg’
Other errors are just because of the two variables not being declared.On Mon, Jan 10, 2011 at 4:10 AM, Adam Stambler <adasta@gmail.com> wrote:
Hi
Configuring eclipse can be a bit tricky. This tutorial was the most straight forward explanation:
http://www.arduino.cc/playground/Code/Eclipse
If you are still having trouble, let me know and I will write up an explanation on the ROS site.
-AdamOn Sun, Jan 9, 2011 at 2:36 PM, airthimble <joseph.st.amand@mines.sdsmt.edu> wrote:
I have been trying to use this package in order to communicate with a
Seeduino. I tried following the avr-bridge tutorial but had trouble with it.
I typically put together a make file for a project and just use a text
editor. I have no trouble using eclipse, I just cannot figure out how to
configure it. There does not seem to be a well-made tutorial for configuring
eclipse in Ubuntu 11.04.
If anyone would be able to give me a push in the right direction it would be
much appreciated!
Thanks!
--
View this message in context: http://ros-users.122217.n3.nabble.com/AVR-and-ROS-tp2200563p2222791.html
Sent from the ROS-Users mailing list archive at Nabble.com.
_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users
_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users