Please ask about problems and questions regarding this tutorial on answers.ros.org. Don't forget to include in your question the link to this page, the versions of your OS & ROS, and also add appropriate tags. |
Running the warehouse
Description: How to start up and configure the Mongo DB serverTutorial Level: BEGINNER
Contents
The mongodb package includes the mongod executable, which runs a MongoDB server. For convenience, we provide a wrapper that starts up this server and sets some configuration parameters from the ROS parameter server.
To start the server from the command line:
$ rosrun mongodb wrapper.py
Alternatively, here's an example of starting the server from a launch file and setting some parameters (the full list of parameters is in the package documentation).
<launch> <node name="mongo" type="wrapper.py" pkg="mongodb"> <param name="overwrite" value="true"/> <param name="database_location" value="/path/to/my/db"/> </node> <param name="warehouse_port" value="27019"/> </launch>