11 Replies Latest reply on Jun 25, 2017 9:04 PM by Microsat

    Intro_to_euclid.pdf issue

    wyojustin

      I've worked through the "intro_to_euclid.pdf" and found a few issues:

       

      1. In "Step 3: Creating config file", we are to create a new directory called "cfg", but the absolute path is not provided.  Should this be in "/intel/euclid/euclid_ws/"? or in the "/intel/euclid/euclid_ws/scripts/" directory or somewhere else?

       

      2. In "Step 4: Editing the CMakeLists file" please provide the absolute path to this document.

       

      3. In "Step 5: Compiling and testing" These commands never end, so should we be issue this commands and backgrounding them?

      -- This command is out of date: (should be "lr200m_nodelet" not "m")

      # we run the camera using:

      roslaunch realsense_camera lr200_nodelet_default.launch

       

      -- This command is out of date (I think it should be "rosrun rgb_filter rgb_filter.py")

      # and our code using:

      rosrun rgb_filter filter.py

       

      --- When I issue that command I get this error maybe 1. above:

      Traceback (most recent call last):

        File "/intel/euclid/euclid_ws/src/rgb_filter/scripts/rgb_filter.py", line 9, in <module>

          from rgb_filter.cfg import RGBFilterConfig

        File "/intel/euclid/euclid_ws/src/rgb_filter/scripts/rgb_filter.py", line 9, in <module>

          from rgb_filter.cfg import RGBFilterConfig

      ImportError: No module named cfg

       

      Work around --

      import sys; sys.path.append('/intel/euclid/euclid_ws/devel/lib/python2.7/dist-packages/rgb_filter/')

      from cfg import RGBFilterConfig

       

      -- please review remaining tutorials and have someone actually work through them from a fresh install. (thanks!)

        • 1. Re: Intro_to_euclid.pdf issue
          Microsat

          I think that the tutorial and documents need looking into also.  Lots of confusion for people that are new to ROS.

           

          Like

          • roslaunch realsense_camera lr200_nodelet_default.launch

          should be

          • roslaunch realsense_camera lr200m_nodelet_default.launch

           

          Like

          • rosrun rgb_filter filter.py

          should be

          • rosrun rgb_filter rgb_filter.py

           

          now in Intro_to_euclid I'm getting the same error

          Traceback (most recent call last):

            File "/intel/euclid/euclid_ws/src/rgb_filter/scripts/rgb_filter.py", line 9, in <module>

              from rgb_filter.cfg import RGBFilterConfig

            File "/intel/euclid/euclid_ws/src/rgb_filter/scripts/rgb_filter.py", line 9, in <module>

              from rgb_filter.cfg import RGBFilterConfig

          ImportError: No module named cfg

           

           

          I have not had time yet to figure out what is wrong I had figure I had missed typed something.

          Seeing these are Tutorials I assumed someone actually work through them.

           

           

           

           

           

          • 2. Re: Intro_to_euclid.pdf issue
            MajdS

            Hi Guys,

             

            Sorry for the confusion regarding the tutorial, indeed what you mentioned are typos that has been fixed (will be re-uploaded soon).

             

            Regarding the CMakeLists.txt file, and cfg, the relative path will always be the package root, e.g. /intel/euclid/euclid_ws/src/rgb_filter

            so cfg file should be under: /intel/euclid/euclid_ws/src/rgb_filter/cfg/<cfg file>

            CMakeLists.txt : /intel/euclid/euclid_ws/src/rgb_filter/CMakeLists.txt

             

            Thanks again for your input, and sorry for the inconvenience caused, we really try hard to make Euclid as easy as possible to use, but sometimes mistakes/typos do happen ..

             

            Let me know if you need any more help.

             

            By the way, it is always a good idea to do the following before compiling:

            make sure the date is correct, if not: sudo date <Current date, e.g. 11 Jun 2017>

            source ~/.bashrc

             

            as it refreshes ROS packages (PYTHON_PATH .. etc).

             

            Best,

            Majd (Intel)

            1 of 1 people found this helpful
            • 3. Re: Intro_to_euclid.pdf issue
              Microsat

              question MajdS

               

              Your statement about cfg and CMakeLists.txt  is confusing.

               

              CMakeLists.txt in the Tutorials  I believe was the one is <package_name> not the top level one at /intel/euclid/euclid_ws/src/

              cfg also should be part of the package.

               

              /intel/euclid/euclid_ws/rgb_filter/CMakeLists.txt

              /intel/euclid/euclid_ws/rgb_filter/cfg/<cfg file>

               

              Common Files and Directories

              http://wiki.ros.org/Packages

              • 4. Re: Intro_to_euclid.pdf issue
                MajdS

                You are absolutely right, I wrote everything is relative to the package path but forgot to add it I edited my reply

                1 of 1 people found this helpful
                • 5. Re: Intro_to_euclid.pdf issue
                  amitmoran

                  We have updated the Tutorial.

                  Please let us know what you think.

                   

                  And thanks or the feedback. That is great having the inputs from the community to improve the solution and collaterals !

                   

                  Amit

                  (Intel)

                  • 6. Re: Intro_to_euclid.pdf issue
                    Microsat

                    amitmoranMajdS

                    I'm still get error

                     

                    rosrun rgb_filter rgb_filter.py

                     

                    --- When I issue that command I get this error

                    Traceback (most recent call last):

                      File "/intel/euclid/euclid_ws/src/rgb_filter/scripts/rgb_filter.py", line 9, in <module>

                        from rgb_filter.cfg import RGBFilterConfig

                      File "/intel/euclid/euclid_ws/src/rgb_filter/scripts/rgb_filter.py", line 9, in <module>

                        from rgb_filter.cfg import RGBFilterConfig

                    ImportError: No module named cfg

                     

                    I've put my up on github GitHub - microsat/ros_sandbox: ROS test code for realsense hardware

                     

                    I went back and did  dynamic_reconfigure/Tutorials - ROS Wiki  which worked without error. (GitHub - microsat/ros_tutorials: my Robot Operating System (ROS) tutorial repo )

                     

                    Darron

                    • 7. Re: Intro_to_euclid.pdf issue
                      wyojustin

                      Not a real fix, but here is the work around --

                      import sys; sys.path.append('/intel/euclid/euclid_ws/devel/lib/python2.7/dist-packages/rgb_filter/')

                      from cfg import RGBFilterConfig

                      • 8. Re: Intro_to_euclid.pdf issue
                        Microsat

                        yea that work as a work around.  My problem is this is a intel Tutorials on there platform and thing are not working right. This platform was sold as Ready to use out of the box? I betting they left off something is the CMakeLists.txt.

                         

                        Some real help would be nice MajdS amitmoran

                         

                        Maybe they could go have someone actually work through them from a fresh install and post to github.

                         

                        I'm sure it something simple I'm missing or the document is missing.

                        • 9. Re: Intro_to_euclid.pdf issue
                          amitmoran

                          Hi,

                           

                          I am looking into it and will get it solved soon.

                          Thanks for the feedback and sorry for that...

                           

                          Amit

                          • 10. Re: Intro_to_euclid.pdf issue
                            amitmoran

                            Hi,

                             

                            so it seems that the problem came from the node file name (rgb_filter.py) is the same as the package (rgb_filter).

                            Changing the name fixes the issue.

                             

                            I've updated the site. see here: http://www.euclidcommunity.intel.com/static/tutorials/pdf/intro_to_euclid.pdf

                             

                            Thanks for the feedback!

                             

                            Amit

                            (Intel)

                            • 11. Re: Intro_to_euclid.pdf issue
                              Microsat

                              I try to go through the Tutorials again

                               

                              Microsat