How to install mongodb for ros kinetic ?
I want the equivalent of ros-indigo package or some database but I have ros-kinetic. In the sudo apt-get list, the package ros-kinetic-mongodb is not available. So, what shall I do ?
Asked by Jaskirat Singh on 2017-06-22 05:39:17 UTC
Answers
I want the equivalent of ros-indigo package ... the package ros-kinetic-mongodb is not available
I do not see ros-indigo-mongodb
package exists.
If you meant mongodb_store
, there's an ongoing discussion for making it into ROS Kinetic. Add your thoughts there, or better yet make a pull request.
Asked by 130s on 2017-06-22 14:59:14 UTC
Comments
I had to install this recently and managed to get it working without too many problems. Using kinetic and a fresh install of Ubuntu 16.04LTS
- I installed ros kinetic desktop full and all the panda_moveit_config package
- Tried to run 'roslaunch panda_moveit_config demo.launch rviz_tutorial:=true'
- This requires the warehouse_ros_mongo package which is not actually released for kinetic on ubuntu
- But it can be built from source using https://github.com/ros-planning/warehouse_ros_mongo
- To get the C++ driver for this, ignore their instructions and use http://mongocxx.org/legacy-v1/installation/
git clone -b releases/legacy https://github.com/mongodb/mongo-cxx-driver.git git checkout legacy sudo scons --prefix=/usr/local --disable-warnings-as-errors install
This should finish with warnings but not errors.
Then clone warehouse_ros_mongo and build it with catkin make. I had to add
'add_compile_options(-std=c++11)'
to the CMakeLists.txt file for that package.
You should be able to run roslaunch panda_moveit_config demo.launch db:=true
and connect to the database on the port which is noted in the terminal output.
Asked by jasperb on 2019-08-28 18:56:38 UTC
Comments