Items with no label
3335 Discussions

Intro_to_euclid.pdf issue

JShaw7
Beginner
3,426 Views

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

from rgb_filter.cfg import RGBFilterConfig

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

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!)

0 Kudos
11 Replies
DNiel2
New Contributor I
1,885 Views

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

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

from rgb_filter.cfg import RGBFilterConfig

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

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.

0 Kudos
Majd_S_Intel
Employee
1,884 Views

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/

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

source ~/.bashrc

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

Best,

Majd (Intel)

DNiel2
New Contributor I
1,884 Views

question MajdS

Your statement about cfg and CMakeLists.txt is confusing.

CMakeLists.txt in the Tutorials I believe was the one is 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/

 

Common Files and Directories

http://wiki.ros.org/Packages http://wiki.ros.org/Packages

0 Kudos
Majd_S_Intel
Employee
1,885 Views

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

0 Kudos
Amit_M_Intel
Employee
1,885 Views

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)

0 Kudos
DNiel2
New Contributor I
1,885 Views

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

from rgb_filter.cfg import RGBFilterConfig

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

from rgb_filter.cfg import RGBFilterConfig

ImportError: No module named cfg

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

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

Darron

0 Kudos
JShaw7
Beginner
1,885 Views

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

0 Kudos
DNiel2
New Contributor I
1,885 Views

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.

0 Kudos
Amit_M_Intel
Employee
1,885 Views

Hi,

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

Thanks for the feedback and sorry for that...

Amit

0 Kudos
Amit_M_Intel
Employee
1,885 Views

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 http://www.euclidcommunity.intel.com/static/tutorials/pdf/intro_to_euclid.pdf

Thanks for the feedback!

Amit

(Intel)

0 Kudos
DNiel2
New Contributor I
1,885 Views

I try to go through the Tutorials again

Microsat

0 Kudos
Reply