I want to run frontier_exploration in the ubuntu18.04(os)

Hello, sir.

lately i upgraded my rosbot2.0 from 16.04 to 18.04.

In “Using frontier exploration | Husarion”, I saw "This project can be done only on ROS Kinetic due to API change since ROS Melodic.Frontier exploration ".

but I want to run frontier_exploration in the ROS Melodic. Already I completed tutorial8(explore_Lite).

Isn’t there anything else method?

if i try to “catkin_make”, i get this error due to frontier_exploration
CMake Error at frontier_exploration-melodic-devel/polygon_layer/CMakeLists.txt:51 (find_package):
By not providing “Findroslint.cmake” in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by “roslint”, but
CMake did not find one.

Could not find a package configuration file provided by “roslint” with any
of the following names:

roslintConfig.cmake
roslint-config.cmake

Add the installation prefix of “roslint” to CMAKE_PREFIX_PATH or set
“roslint_DIR” to a directory containing one of the above files. If
“roslint” provides a separate development package or SDK, be sure it has
been installed.

– Configuring incomplete, errors occurred!
See also “/home/husarion/husarion_ws/build/CMakeFiles/CMakeOutput.log”.
See also “/home/husarion/husarion_ws/build/CMakeFiles/CMakeError.log”.
Makefile:3568: recipe for target ‘cmake_check_build_system’ failed
make: *** [cmake_check_build_system] Error 1
Invoking “make cmake_check_build_system” failed

Hi prejudge,

I’ve tried to install frontier_exploration on Ubuntu 18.04 and ROS Melodic from source and everything went just fine. Are you sure you set branch melodic-devel? What is CPU architecture on device you try to install this pkg?

Best regards,
Hubert

yes, I set melodic-devel.

CPU architecture is ASUS Tinker Board(Rockchip RK 3288 with 4x 1.80 GHz as CPU). Am I correct answering your question?

Hi prejudge,

Yes, that’s what I meant. Please let me check it on the same SBC I will let you know the results asap.

Best regards,
Hubert

1 Like

Hi prejudge,

Sorry for delay in response. I check your issue on clean ROSbot 2.0 image, and you have to make few steps to use frontier_exploration pkg:

  • Create workspace and clone repo in the same way you did before.
  • Install missing ROS pkgs:
sudo apt install ros-melodic-roslint

And

sudo apt install ros-melodic-pcl*
  • change branch to melodic-devel
  • *It’s not necessary, but I recommend creating some swap memory before compilation.
  • compile using command catkin_make -j

Everything should work fine :slight_smile: don’t forget to source your workspace.

Please let me know if this manual works for you.

Best regards,
Hubert

1 Like

Sorry. I tried to do your guide but It was failed.

Maybe I guess there is another problem.

now I am busy. Afterwards i will try to do it properly.

Thank you for your care.

I compoiled using command “catkin_make -j”

but I faced new problem.

The problem occur when i run out frontier_exploration.

I’m given this error message.

ERROR: cannot launch node of type [frontier_exploration/explore_client]: Cannot locate node of type [explore_client] in package [frontier_exploration]. Make sure file exists in package path and permission is set to executable (chmod +x)
ERROR: cannot launch node of type [frontier_exploration/explore_server]: Cannot locate node of type [explore_server] in package [frontier_exploration]. Make sure file exists in package path and permission is set to executable (chmod +x)
[ WARN] [1613456255.568528194]: global_costmap: Pre-Hydro parameter “static_map” unused since “plugins” is provided

Can you tell me why you’re doing this?

Hi prejudge,

I’m really sorry but I misled you.

I received the same error after launching some example, after that I investigated issues on Github and ROS community. It turned out that pkg explore_lite replace frontier_exploration in Melodic distro. You can find an example of using this pkg in our ROS tutorial.

I hope working with explore_lite will be suitable for you.

Best regards,
Hubert