hrnr / m-explore

ROS packages for multi robot exploration
Other
323 stars 210 forks source link

Node explore cannot be found after launching explore.launch #11

Closed kenanEkici closed 6 years ago

kenanEkici commented 6 years ago

This is what I get when I try to run explore.launch in the explore_lite package.

ERROR: cannot launch node of type [explore_lite/explore]: can't locate node [explore] in package [explore_lite]

What am I doing wrong?

hrnr commented 6 years ago

This probably means you don't have this package installed correctly.

To resolve this I need more information.

It might be also problem with your specific installation of ROS. Do other packages work correctly?

kenanEkici commented 6 years ago

I have installed explore_lite with: sudo apt install ros-kinetic-multirobot-map-merge ros-kinetic-explore-lite I'm not sure which package version I have cloned the master And I'm using Kinetic.

I'm not entirely sure what you mean with other packages?

hrnr commented 6 years ago

I don't understand. Have you installed your package from repository, or have you cloned from master and compiled it yourself?

Does other packages works as expected? For example for explore_lite you need to have configured move_base. Does move_base work? (Can you navigate your robot with move_base?)

kenanEkici commented 6 years ago

We are now trying to configure it the way it's mentioned in the quick-start.txt, I will let you know.

hrnr commented 6 years ago

That file is outdated. I should probably remove that.

kenanEkici commented 6 years ago

Can you provide me a recent quickstart for ROS Kinetic for Turtlebot2

hrnr commented 6 years ago

I have removed the mentioned file. Thanks for pointing that out. I have forgotten about that file.

I think there is no quickstart no longer needed. Package is now properly released in ROS, so installation is very easy. quickstart.txt was just about installation of early development version of this package.

I can reproduce the error you have. Thanks for reporting. I will fix it soon.

hrnr commented 6 years ago

As a workaround you can uninstall packages via apt and clone this repo to your workspace. From workspace everything works as expected.

kenanEkici commented 6 years ago

What I did was:

And from here we are stuck because we are not sure how to launch the package because nothing seems to be working

hrnr commented 6 years ago

After compiling you should be able to run explore.launch via roslaunch. You might need to source again setup.bash from your workspace for completion to work again.

kenanEkici commented 6 years ago

Okay we did a source and we have successfully been able to run explore_lite explore.launch, after doing a minimal launch on the turtlebot. What are the next steps to make the robot mapping autonomously? Thank you in advance

hrnr commented 6 years ago

you need to have correctly configured move_base. You should be able to navigate the robot with move_base manually. Then explore.launch should work for your more or less out of the box (I was also using that launch file with turtlebot).

Of course, you might need to change some topic names and tf frames names depending on your configuration. Check the wiki how to configure the parameters.

kenanEkici commented 6 years ago

Okay, we will try that. Do you perhaps have the launchfile for a Turtlebot?

hrnr commented 6 years ago

the launchfile shipped with explore_lite is the same launchfile that I have used for experiments.

kenanEkici commented 6 years ago

Okay, we have an issue with configuring the move_base. Our move_base package is empty except for a package.xml file.

hrnr commented 6 years ago

ok, come back when you get your move_base up and running and let me if you have any further issues with explore_lite.

Thanks again for reporting this issue, I will fix it in the next package release, so the package from ROS repository works out of the box.

kenanEkici commented 6 years ago

After configuring move_base, we have been able to successfully launch explore.launch. It works very well, but some parameters need to be tweaked in order to make it run more efficient.

hrnr commented 6 years ago

Great. Unfortunately filtering of small frontiers is now hard-coded because of #7 (but it is fixed in master, so it should not affect you). You can still tune weights of frontiers (potential_scale, gain_scale), which affects the exploration considerably.

If you have some other issues or suggestions for improvements let me know.

kenanEkici commented 6 years ago

Thanks. The only issue we encountered since then is mapping small and crowded rooms (with or without moving obstacles). It constantly keeps trying to recover and eventually never accomplishes to map the room and therefor never moves out of a specific room (atleast the smaller ones). If finetuning it doesnt't help we will be considering to try and fix this.

hrnr commented 6 years ago

Oh yeah. That is a general problem with move_base. Exploring can't do much about it. Maybe exploring should avoid such spaces, but I'm not sure if that is viable.

Tweaking parameters of move_base usually helps .I had some success with big inflation on global map (to keep it from walls) an small inflation in local map (to leave the planner as much space as possible).