And I sometimes see the test failing with KeyError on finding the rosparam mongodb_host.
This problem occurs because message_store_node.py tries to get the param which is not yet set by mongodb_server.py.
This PR also fixed the test file to use launch file for bringing up mongodb server nodes for avoiding this and ensure the parameter is set.
Discussed in https://github.com/strands-project/mongodb_store/issues/211 Since current codes for querying with projection has almost the same as querying (without projection), this PR removes duplicated codes for projection. Also it looks like
MongoQuerywithProjection.srv
just addedprojection_query
property compared toMongoQueryMsg.srv
, I added this property also toMongoQueryMsg.srv
so that we can use projection without usingquery_with_projection
service especially. https://github.com/strands-project/mongodb_store/blob/kinetic-devel/mongodb_store_msgs/srv/MongoQueryMsg.srv https://github.com/strands-project/mongodb_store/blob/kinetic-devel/mongodb_store_msgs/srv/MongoQuerywithProjectionMsg.srvAnd I sometimes see the test failing with
KeyError
on finding the rosparammongodb_host
. This problem occurs becausemessage_store_node.py
tries to get the param which is not yet set bymongodb_server.py
. This PR also fixed thetest
file to use launch file for bringing up mongodb server nodes for avoiding this and ensure the parameter is set.