Hi Homer,<br><br>Sorry about the trouble.  One of our development branches got set as the default when we changed our repo to use submodules.<br><br>I am in the middle of fixing it now, but in the mean time you should just clone my personal repository. <br>
<br>git://<a href="http://github.com/adasta/rutgers-ros-pkg.git">github.com/adasta/rutgers-ros-pkg.git</a><br><br>I should have this fixed tonight.<br><br>As for the large size of the binary, yup that is correct.  The arduino libraries are pretty large and also the way I first coded the first  bridge was a bit memory sloppy.  I should be releasing a slimmed down version soon.<br>
<br>-Adam<br><br><div class="gmail_quote">On Wed, Feb 9, 2011 at 7:20 AM, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com">homer.manalo@roboteknik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Running bridge_node gives me this:<br><br> <span style="font-family: courier new,monospace;">****  avr_bridge's bridge_node.py   *****</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">Opening file  callResponse.yaml</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Traceback (most recent call last):</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  File "/home/roboteknik/ros/stacks/avr_bridge/scripts/bridge_node.py", line 23, in <module></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    bridge = avr_bridge.AvrBridgeNode()</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  File "/home/roboteknik/ros/stacks/avr_bridge/src/avr_bridge.py", line 327, in __init__</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    self.bridge = AvrBridge()</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">  File "/home/roboteknik/ros/stacks/avr_bridge/src/avr_bridge.py", line 157, in __init__</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    self.header_struct = struct.Struct('<B<B<h') # packet_type topic_tag data_length</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">struct.error: bad char in struct format</span><br><br>What's the problem now here?<br><br>Thanks,<br><font color="#888888">Homer</font><div><div></div><div class="h5">
<br><br><div class="gmail_quote">On Wed, Feb 9, 2011 at 7:34 PM, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com" target="_blank">homer.manalo@roboteknik.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">OK, I just compiled it successfully now.<br>Added these lines to String.cpp:<br><span style="font-family: courier new,monospace;">    String::~String()</span><br style="font-family: courier new,monospace;">

<span style="font-family: courier new,monospace;">    {}</span><br>
<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">Program:   14632 bytes (44.7% Full)<br></blockquote><div>I didn't know this would go almost half-full just for a hello world.<br>


</div><br>-Homer<div><div></div><div><br><br><div class="gmail_quote">On Wed, Feb 9, 2011 at 7:09 PM, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com" target="_blank">homer.manalo@roboteknik.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I found the culprit with the error: <span style="font-family: courier new,monospace;">‘string’ in namespace ‘ROS’ does not name a type. <br></span><font face="arial,helvetica,sans-serif">The ros_string.h has the ff. lines:</font><br>



<span style="font-family: courier new,monospace;">  #ifndef STRING_H_</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  #define STRING_H_</span><br>Should be:<br><span style="font-family: courier new,monospace;">  #ifndef ROS_STRING_H_</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">  #define ROS_STRING_H_</span><br>The filename on the top of the comment is string.h as well. It also solved the error: <span style="font-family: courier new,monospace;">‘class std_msgs::String’ has no member named ‘data’</span>. It seems that this is also the reason for the previous error I got regarding std_msgs::String. I don't have to reorder the #include files anymore.<br>



<br>I,ve got a couple more errors this time:<br><span style="font-family: courier new,monospace;">  char Ros::getTopicTag(char *topic) {</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    ../avrRos/ros_generated.cpp:6: error: prototype for ‘char Ros::getTopicTag(char*)’ does not match any in class ‘Ros’</span><br>



<br><span style="font-family: courier new,monospace;">  char getTopicTag(char const *topic);</span><br><span style="font-family: courier new,monospace;">  ../avrRos/Ros.h:132: error: candidate is: char Ros::getTopicTag(const char*)</span><br>



<br>I replaced the autogenerated ros_generated.cpp with this:<br><br><span style="font-family: courier new,monospace;">  /* This file was autogenerated as a part of the avr_bridge pkg</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">   * avr_bridge was written by Adam Stambler and Phillip Quiza of</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">   * Rutgers University.</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">   */</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  #include "Ros.h"</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">  #include "string.h"  //added manually for strcmp</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  char Ros::getTopicTag(char const *topic) {  //manually added const to resolve above errors</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">      if (!strcmp(topic, "call"))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">          return 0;</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">      if (!strcmp(topic, "response"))</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">          return 1;</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">      return 0;  //manually added semicolon(;)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  }</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">  Ros ros("callResponse", 2);</span><br><br>I'm not sure if this is the right solution but the errors are gone now, except one. It's a make error, here is the console output:<br>



<br><span style="font-family: courier new,monospace;">**** Build of configuration Release for project avr_bridgeHelloWorld ****</span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">make all </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Building target: avr_bridgeHelloWorld.elf</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">Invoking: AVR C++ Linker</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">avr-gcc --cref -s -Os -o"avr_bridgeHelloWorld.elf"  ./avrRos_user.o ./main.o  ./avrRos/Ros.o ./avrRos/String.o ./avrRos/cc_support.o ./avrRos/ros_generated.o ./avrRos/ros_string.o   -lArduinoProMini5VCore -lm -Wl,-Map,avr_bridgeHelloWorld.map,--cref -L/home/roboteknik/eclipse/ArduinoCores -mmcu=atmega328p</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">./main.o: In function `__static_initialization_and_destruction_0(int, int)':</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">main.cpp:(.text._Z41__static_initialization_and_destruction_0ii+0x2c): undefined reference to `std_msgs::String::~String()'</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">main.cpp:(.text._Z41__static_initialization_and_destruction_0ii+0x34): undefined reference to `std_msgs::String::~String()'</span><br style="font-family: courier new,monospace;">



<span style="font-family: courier new,monospace;">make: *** [avr_bridgeHelloWorld.elf] Error 1</span><br><br>I'm not sure how to solve this error.<div><div></div><div><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;">
<br><div class="gmail_quote">On Wed, Feb 9, 2011 at 2:51 PM, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com" target="_blank">homer.manalo@roboteknik.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



Ok now I have sorted out about the std_msgs error by ordering the #include lines and object declarations:<br><br><span style="font-family: courier new,monospace;">  #include <WProgram.h></span><span style="font-family: courier new,monospace;"></span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">  #include <stdio.h></span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  #include "avrRos/String.h"</span><div>



<br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  std_msgs::String call_msg;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  std_msgs::String response_msg;</span><br style="font-family: courier new,monospace;">




<br style="font-family: courier new,monospace;"></div><span style="font-family: courier new,monospace;">  #include "avrRos/Ros.h"</span><br><br>But I still got some errors here:<br><br><span style="font-family: courier new,monospace;">  sprintf(response_msg.data.getRawString(), "You sent : %s", call_msg.data.getRawString());</span><br style="font-family: courier new,monospace;">




<span style="font-family: courier new,monospace;">    ../main.cpp:35: error: ‘class std_msgs::String’ has no member named ‘data’</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    ../main.cpp:35: error: ‘class std_msgs::String’ has no member named ‘data’</span><br>




<span style="font-family: courier new,monospace;"><br>  call_msg.data.setMaxLength(30);</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  response_msg.data.setMaxLength(60);</span><br>




<span style="font-family: courier new,monospace;">    ../main.cpp:50: error: ‘class std_msgs::String’ has no member named ‘data’</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    ../main.cpp:51: error: ‘class std_msgs::String’ has no member named ‘data’</span><br>




<br><span style="font-family: courier new,monospace;">  ROS::string data;</span><br><span style="font-family: courier new,monospace;">    ../avrRos/String.h:18: error: ‘string’ in namespace ‘ROS’ does not name a type</span><br>




<br><span style="font-family: courier new,monospace;">  ROS::string name;</span><br><span style="font-family: courier new,monospace;">    ../avrRos/Ros.h:117: error: ‘string’ in namespace ‘ROS’ does not name a type</span><div>



<div></div><div><br>
<br><br style="font-family: courier new,monospace;"><br><div class="gmail_quote">On Tue, Feb 8, 2011 at 4:41 PM, Homer Manalo <span dir="ltr"><<a href="mailto:homer.manalo@roboteknik.com" target="_blank">homer.manalo@roboteknik.com</a>></span> wrote:<br>




<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello, I'm following the hello world tutorial and getting build errors particularly with these two lines:<br>




<br><span style="font-family: courier new,monospace;">  std_msgs::String call_msg;</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  std_msgs::String response_msg;</span><br><br><span style="font-family: courier new,monospace;">  ../main.cpp:21: error: ‘std_msgs’ has not been declared</span><br style="font-family: courier new,monospace;">





<span style="font-family: courier new,monospace;">  ../main.cpp:21: error: expected constructor, destructor, or type conversion before ‘call_msg’</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  ../main.cpp:22: error: ‘std_msgs’ has not been declared</span><br style="font-family: courier new,monospace;">





<span style="font-family: courier new,monospace;">  ../main.cpp:22: error: expected constructor, destructor, or type conversion before ‘response_msg’</span><br>
<br>
Other errors are just because of the two variables not being declared.<div><div></div><div><br style="font-family: courier new,monospace;"><br><br><div class="gmail_quote">On Mon, Jan 10, 2011 at 4:10 AM, Adam Stambler <span dir="ltr"><<a href="mailto:adasta@gmail.com" target="_blank">adasta@gmail.com</a>></span> wrote:<br>





<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi<br><br>Configuring eclipse can be a bit tricky.  This tutorial was the most straight forward explanation:<br>





<br><a href="http://www.arduino.cc/playground/Code/Eclipse" target="_blank">http://www.arduino.cc/playground/Code/Eclipse</a><br>
<br>If you are still having trouble, let me know and I will write up an explanation on the ROS site.<br><font color="#888888"><br>-Adam</font><div><div></div><div><br><br><div class="gmail_quote">On Sun, Jan 9, 2011 at 2:36 PM, airthimble <span dir="ltr"><<a href="mailto:joseph.st.amand@mines.sdsmt.edu" target="_blank">joseph.st.amand@mines.sdsmt.edu</a>></span> wrote:<br>






<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
I have been trying to use this package in order to communicate with a<br>
Seeduino. I tried following the avr-bridge tutorial but had trouble with it.<br>
I typically put together a make file for a project and just use a text<br>
editor. I have no trouble using eclipse, I just cannot figure out how to<br>
configure it. There does not seem to be a well-made tutorial for configuring<br>
eclipse in Ubuntu 11.04.<br>
<br>
If anyone would be able to give me a push in the right direction it would be<br>
much appreciated!<br>
<br>
Thanks!<br>
<font color="#888888">--<br>
View this message in context: <a href="http://ros-users.122217.n3.nabble.com/AVR-and-ROS-tp2200563p2222791.html" target="_blank">http://ros-users.122217.n3.nabble.com/AVR-and-ROS-tp2200563p2222791.html</a><br>
Sent from the ROS-Users mailing list archive at Nabble.com.<br>
</font><div><div></div><div>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>