<div><br></div><div>Oops, the eclipse one was quite simple. It was the gnome-terminal one I was thinking of - it's a little more difficult to get started with the appropriate variables exported. If you've only got one ros installation, then of course you can just export the setup in your .profile and eclipse will immediately grab the environment variables (you can check by clicking windows->preferences->build->environment->select - you should be able to see ROS_ROOT in the list, no need to actually select it, just verify that it is there). </div>
<div><br></div><div>However if you start to layout out multiple installations (like we do here, one for each robot), then the following is very convenient as you just set a different path for each eclipse-ros starter. I usually put this script in my path and then create new menu items in my gnome/kde/e17.<br>
</div><div><br></div><div><br></div><div>#!/bin/bash<br># This only needed by ubuntu karmic and eclipse ganymede(?), otherwise comment out<br># export GDK_NATIVE_WINDOWS=1<br>source /opt/ros/setup.sh<br># Add the full path if eclipse is not in your PATH<br>
exec eclipse<br><br></div><br><div class="gmail_quote">On 22 October 2010 01:52, Aditya Gadre <span dir="ltr"><<a href="mailto:agadre@vt.edu">agadre@vt.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



  
  

<div text="#000000" bgcolor="#ffffff">
Hi Daniel,<br>
<br>
Thank you very much for your email. I think I will follow your
suggestion of manually creating an eclipse project. That way my sources
will remain clutter free. I would much appreciate if you could give me
the script you use to start eclipse.<br>
<br>
Thanks again!<br><font color="#888888">
- Aditya</font><div><div class="h5"><br>
<br>
On 10/21/2010 11:22 AM, Daniel Stonier wrote:
<blockquote type="cite">Oh, only gotcha with the method I outlines is that you
have to start your eclipse from a shell with all the usual ROS
variables being exported...that or either fire up a script which does
that for you so you can put desktop icons on your panels (I have one I
can paste here if you need).<br>
  <br>
  <div class="gmail_quote">On 22 October 2010 00:20, Daniel Stonier <span dir="ltr"><<a href="mailto:d.stonier@gmail.com" target="_blank">d.stonier@gmail.com</a>></span>
wrote:<br>
  <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
    <div>I actually prefer just using makefile projects within eclipse. <br>
    </div>
    <div><br>
    </div>
    <div>- create a new ros package</div>
    <div>- in eclipse:</div>
    <div>  - create anew, empty Makefile project. Turn off the default
location and choose your ros package location instead.</div>
    <div>- make sure you add the line 'set(CMAKE_VERBOSE_MAKEFILE
true)' to your CMakeLists.txt, this helps eclipses' c++ indexer.<br>
    </div>
    <div>- build project, clean project then both work as you
expect...with a parallel build directory.</div>
    <div><br>
    </div>
    <div>Of course, that will only let you make the individual project.
But i typically do an rosmake for the project now and then (i.e. when I
download or other packages have changed alot). Usually while developing
all you need is to make the single package.</div>
    <div><br>
    </div>
    <div>The above also has the advantage in that you don't have any
problems with the .project, .cproject files getting shared amongst your
team. That and the fact that you can make/rosmake from a shell and
build from inside eclipse without it getting mucked up.</div>
    <div><br>
    </div>
    <div>I should probably add some notes about this to the wiki.</div>
    <div>
    <div><br>
    <div class="gmail_quote">On 21 October 2010 11:31, Aditya Gadre <span dir="ltr"><<a href="mailto:agadre@vt.edu" target="_blank">agadre@vt.edu</a>></span> wrote:<br>
    <blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">I
have a question about "make eclipse-project" command. I created a<br>
package which has a number of CMakeLists.txt files as follows -<br>
      <br>
gps (package_dir)<br>
    - CMakeLists.txt ( with add_subdirectory(src) )<br>
    - src (directory)<br>
        - CMakeLists.txt (with add_subdirectory(gps) and<br>
add_subdirectory(node))<br>
        - gps (directory)<br>
            - CMakeLists.txt (with add_library)<br>
        - node (directory)<br>
            - CMakeLists.txt (with add_executable)<br>
      <br>
When I run "rosmake gps", all CMakeFiles directories and other related<br>
CMake files are under the "build" directory as expected for an<br>
out-of-source build. However, when I run "make eclipse-project", then<br>
CMakeFiles directories, along with other CMake files are created in<br>
directories that contain CMakeLists.txt files. The ROS wiki mentions the<br>
work-around used by "make eclipse-project". Are all CMakeFiles folders<br>
created outside the build directory a result of this work-around?<br>
      <br>
Thanks,<br>
- Aditya<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>
    </blockquote>
    </div>
    <br>
    <br clear="all">
    <br>
    </div>
    </div>
    <font color="#888888">-- <br>
Phone : +82-10-5400-3296 (010-5400-3296)<br>
Home: <a href="http://snorriheim.dnsdojo.com/" target="_blank">http://snorriheim.dnsdojo.com/</a><br>
Yujin Robot: <a href="http://www.yujinrobot.com/" target="_blank">http://www.yujinrobot.com/</a><br>
Embedded Control Libraries: <a href="http://snorriheim.dnsdojo.com/redmine/wiki/ecl" target="_blank">http://snorriheim.dnsdojo.com/redmine/wiki/ecl</a><br>
    </font></blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Phone : +82-10-5400-3296 (010-5400-3296)<br>
Home: <a href="http://snorriheim.dnsdojo.com/" target="_blank">http://snorriheim.dnsdojo.com/</a><br>
Yujin Robot: <a href="http://www.yujinrobot.com/" target="_blank">http://www.yujinrobot.com/</a><br>
Embedded Control Libraries: <a href="http://snorriheim.dnsdojo.com/redmine/wiki/ecl" target="_blank">http://snorriheim.dnsdojo.com/redmine/wiki/ecl</a><br>
  <pre>_______________________________________________
ros-users mailing list
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a>
  </pre></blockquote>
</div></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><br clear="all"><br>-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>Home: <a href="http://snorriheim.dnsdojo.com/">http://snorriheim.dnsdojo.com/</a><br>Yujin Robot: <a href="http://www.yujinrobot.com/">http://www.yujinrobot.com/</a><br>
Embedded Control Libraries: <a href="http://snorriheim.dnsdojo.com/redmine/wiki/ecl">http://snorriheim.dnsdojo.com/redmine/wiki/ecl</a><br>