Ask Your Question
1

Benchmarking MoveIt: unable to connect to database

asked 2022-01-16 10:56:57 -0500

Zero1d gravatar image

updated 2022-01-22 04:30:38 -0500

osilva gravatar image

Hello!

I'm trying to benchmark the different OMPL algorithms by using the official tutorial, however I cannot connect to the database.

As I am launching the panda arm with the db turned on through this command:

roslaunch panda_moveit_config demo.launch db:=true

I get the following error:

[ERROR] [1642350646.192738964]: Unable to connect to the database at 'localhost:33829'. If you just created the database, it could take a while for initial setup.

I've seen a solution posted in this thread, however that was for melodic while I'm on Noetic. As far as I've seen, there is no mongodb_store for Noetic, hence this solution didn't work for me.

I have installed ros mongodb via this command:

sudo apt-get install ros-noetic-warehouse-ros-mongo

Does anyone know how to solve this issue? Could it be that I'm missing some files or maybe they need additional setup?

edit retag flag offensive close merge delete

Comments

1

Have you reviewed this tutorial ?

osilva gravatar image osilva  ( 2022-01-19 14:27:10 -0500 )edit

Yes I have. I installed ros_mongo for ros noetic and used the default suggested host and port. The error persists.

Zero1d gravatar image Zero1d  ( 2022-01-22 04:03:04 -0500 )edit
1

Please take a look at this tread: https://github.com/ros-planning/movei...

sudo apt install mongodb-server-core
sudo apt install ros-noetic-warehouse-ros
# Not sure if the command below is needed...
sudo apt install ros-noetic-warehouse-ros-mongo

Plus there is more things to try that may help. Let me know if it works to add as an answer.

osilva gravatar image osilva  ( 2022-01-22 04:39:22 -0500 )edit

Thank you osilva, your solution allowed me to connect to the database!

I'm new to the forums, so can you tell me if it's I that have to add the solution as the one that worked (and if it's so then how) or if it's something that you do yourself.

Zero1d gravatar image Zero1d  ( 2022-01-23 06:00:55 -0500 )edit

Hi @Zero1d, the idea is to document the solution in the form of an answer. You may answer your own questions as well. To accept the answer pls check on the check mark so others know it worked for you. And you may also vote the question up to give karma to the answerer.

osilva gravatar image osilva  ( 2022-01-23 08:05:03 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-01-23 08:03:02 -0500

osilva gravatar image

For the following error:

[ERROR] [1642350646.192738964]: Unable to connect to the database at 'localhost:33829'. If you just created the database, it could take a while for initial setup.

Likely cause is missing dependencies. Install the following:

sudo apt install mongodb-server-core
sudo apt install ros-noetic-warehouse-ros
# Not sure if the command below is needed...
sudo apt install ros-noetic-warehouse-ros-mongo

To verify mongod is working:

mongod -v

If the following error appears:

[ERROR] [1615567759.671633]: Mongo process exited with error code 100

That is because you have forgotten to kill your roslaunch panda_moveit_config demo.launch db:=true

The suggested solution comes from this thread: https://github.com/ros-planning/movei...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-01-16 10:56:57 -0500

Seen: 54 times

Last updated: Jan 23