After catkin migration import error
Hi,
I have a working project in Fuerte, but when I tried to migrate code to Groovy and catkin I see the following:
in <module>
import mongo_ros as mr
ImportError: No module named mongo_ros
What I forgot?
catkin_make works correctly but in execution pyhton do not found mongo_ros package. I installed warehousewg from apt-get and "roscd mongo_ros" also works.
EDIT:
Thanks for your quick response. I have followed catkin overlay tutorial but the problem persists. I can do roscd mongo_ros and works correctly like in the tutorial, but in execution python do not find mongo_ros package.
May be I don't have successfully created the package configuration and depends. I follow My package.xml file contains the following:
<!-- The *_depend tags are used to specify dependencies -->
<!-- Dependencies can be catkin packages or system dependencies -->
<!-- Examples: -->
<!-- Use build_depend for packages you need at compile time: -->
<build_depend>message_generation</build_depend>
<!-- Use buildtool_depend for build tool packages: -->
<!-- <buildtool_depend>catkin</buildtool_depend> -->
<!-- Use run_depend for packages you need at runtime: -->
<run_depend>message_runtime</run_depend>
<!-- Use test_depend for packages you need only for testing: -->
<!-- <test_depend>gtest</test_depend> -->
<buildtool_depend>catkin</buildtool_depend>
<build_depend>control_msgs</build_depend>
<build_depend>rospy</build_depend>
<build_depend>mongo_ros</build_depend>
<build_depend>std_msgs</build_depend>
<build_depend>tf</build_depend>
<run_depend>control_msgs</run_depend>
<run_depend>mongo_ros</run_depend>
<run_depend>rospy</run_depend>
<run_depend>std_msgs</run_depend>
<run_depend>tf</run_depend>
And CMakeList.txt:
find_package(catkin REQUIRED COMPONENTS
control_msgs
rospy
std_msgs
tf
#mongo_ros
)
I have comment mongo_ros because I obtain cmake error:
CMake Error at /opt/ros/groovy/share/catkin/cmake/catkinConfig.cmake:72 (find_package):
Could not find a configuration file for package mongo_ros.
Set mongo_ros_DIR to the directory containing a CMake configuration file
for mongo_ros. The file will have one of the following names:
mongo_rosConfig.cmake
mongo_ros-config.cmake
Why I obtain this CMake error? It seems that the problem is related with this...
Thank you, regards.
What is your ``$PYTHONPATH``?
~/ros/groovy/catkin-ws/devel/lib/python2.7/dist-packages:/opt/ros/groovy/lib/python2.7/dist-packages: But in those paths mongo_ros doesn't appear. It seems that python client is not supported: "The mongo_ros package no longer provides a Python ROS client library to the DB" http://bit.ly/1bV8ugF
That link does not work for me. Where is the source you are using for mongo_ros?
Links works if you copy and paste in address bar, I don't know why. Complete link: "http://wiki.ros.org/warehousewg/Tutorials/Using the Python client library" I download with 'apt-get install ros-groovy-warehousewg' Now I am working in a C++ client to DB which offers services like: insert, remove...