skasperski / navigation_2d

ROS nodes to navigate a mobile robot in a planar environment
GNU General Public License v3.0
123 stars 65 forks source link

Tutorial 3 mapper error #25

Closed alhouty808 closed 7 years ago

alhouty808 commented 7 years ago

Hello, I would appreciate your help on this

http://answers.ros.org/question/249500/nav2d-toturial-3/

Thanks,

alhouty808 commented 7 years ago

I provided the log file as requested.

skasperski commented 7 years ago

I tested everything on a similar system, with Indigo on 14.04, but I can't reproduce the error.

There are some strange warnings in your Operator-Log. I don't know if it is related, but it might be a hint. Can you check the transform tree (rosrun tf view_frames), if anything is weird there?

When do this errors occur? After you called one of those services? If nothing else helps, you might try to build nav2d from source, just to see if any problems with your systems pop up.

alhouty808 commented 7 years ago

I will try to build the package from source.

Thank you for you response.

alhouty808 commented 7 years ago

I just built the package from the source, and i faced 2 errors. I updated system's packages and built the package one more time, the error still pops up.

screenshot

skasperski commented 7 years ago

It says it can't find Costmap2D::mutex_t, but it should be declared in costmap_2d.h#294. Please do a "roscd costmap_2d" and see if it brings you to /opt/ros/indigo/share/costmap_2d. The file should then be located in /opt/ros/indigo/include/costmap_2d/costmap_2d.h

alhouty808 commented 7 years ago

i did the command and it brings me to "/opt/ros/indigo/share/costmap_2d"

i open the file at "/opt/ros/indigo/include/costmap_2d/costmap_2d.h"

and i guess the file has been modified here is a screenshot

skasperski commented 7 years ago

Ok, this is getting really strange. Can you please check again your version of this ubuntu-package: ros-indigo-costmap-2d

Mine is: 1.12.13-0trusty-20161026-140913-0700

alhouty808 commented 7 years ago

I re-installed the ROS. Now everything works perfectly.

Thanks,