ROS Warhouse on Noetic
I'm trying to use mongodb with rviz. Hence, i tried compiling warehouserosmongo after doing a git clone to ~/catkin_ws/src folder . However, the cmake fails anyone has any idea on how to fix it. Otherwise, can some recommend a package to use with ros in order to connect the mongodb and interact with rviz/moveit.
Error encountered when compiling:
CMake Error at /home/zelix/catkin_ws/devel/share/warehouse_ros/cmake/warehouse_rosConfig.cmake:113 (message):
Project 'warehouse_ros' specifies
'/home/zelix/catkin_ws/src/warehouse_ros/include' as an include dir, which
is not found. It does neither exist as an absolute directory nor in
'/home/zelix/catkin_ws/src/warehouse_ros//home/zelix/catkin_ws/src/warehouse_ros/include'.
Check the website 'http://ros.org/wiki/warehouse_ros' for information and
consider reporting the problem.
Call Stack (most recent call first):
/opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:76 (find_package)
warehouse_ros_mongo/CMakeLists.txt:15 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/zelix/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/zelix/catkin_ws/build/CMakeFiles/CMakeError.log".
Asked by zelix on 2021-09-09 04:22:10 UTC
Answers
You are aware that warehouse_ros
and warehouse_ros_mongo
are different ros packages? I am not sure, but it would not surprise me if you need both to make your own build.
Assuming you are on Ubuntu 20, why can't you install these using apt
? Also, I believe it's also going to expect you to install a mongodb
server (which is a non-ros thing) on your machine.
Asked by Mike Scheutzow on 2021-09-10 11:02:18 UTC
Comments
Yup so i did install mongodb. TI'm also aware that warehouse_ros
and warehouse_ros_mongo
are 2 different packages. So i tried to install `warehouse_ros_mongo' by doing a catkin_make but it fails.
When i was trying to do a catkin_make after cloning the warehouse_ros_mongo
to ~/catkin_ws/src
, That's when i encountered the error i mentioned above.
For the warehouse_ros
i manged to do catkin_make successfully., however, when i referred to the tutorial i noticed that mongo_wrapper_ros.py no longer exists. Hence, tried running the C++ scripts on a standalone basis but it didn't work.
Asked by zelix on 2021-09-10 21:26:20 UTC
Is the error message correct for your computer? When I git-clone warehouse_ros
, I see an include
directory at the top level. Do you?
You have still not explained why you are making things harder for yourself by not using apt-get
.
Asked by Mike Scheutzow on 2021-09-11 07:05:29 UTC
FYI, In noetic, I cloned both ros packages, installed mongodb-dev
, and ran catkin_make
. It built successfully.
Asked by Mike Scheutzow on 2021-09-11 07:26:39 UTC
Hi, just to clarify about apt-get
do you mean that after i cloning, i do a sudo apt-get install make
?
I do see the include directory at the top level of warehouse_ros
. I just manged to do a catkin_make
with the warehouse_ros
. Now how do i use it with my local instance of mongodb
Asked by zelix on 2021-09-11 08:06:35 UTC
The ubuntu package manager provides hundreds of ros packages ready for use. You don't need to clone the source code or compile if all you need is standard functionality. In this case you should have done:
sudo apt-get install ros-noetic-warehouse-ros
sudo apt-get install ros-noetic-warehouse-ros-mongo
and you would have been done.
Regarding your second question, the convention on this web site is "one question, one answer". After you do a search in the existing 60,000 questions, if you do not find an answer you are free to open a new question. You may include a url back to a previous question if that helps give context to your new question.
Asked by Mike Scheutzow on 2021-09-11 08:42:22 UTC
Thank you very much!
Asked by zelix on 2021-09-11 20:29:55 UTC
I'm happy to help.
Asked by Mike Scheutzow on 2021-09-12 08:31:27 UTC
Comments