You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently trying to get rid of all the config files the ppl perception still needs because this often breaks if launched remotely using the machine tag (weird ros behaviour which requires hard coding of the paths instead of using the find tag and therefore it breaks on robots that don't use the standard set-up). The HOG feature extraction uses a binary model file which I can store on the ROS parameter server and also dump to a yaml file afterwards. Here is the file I would like to use for the config manager:
trying to load this to the param server rosparam load my_file.yaml works fine but if I try to save it to the data centre I get the following:
$ rosservice call /config_manager/save_param /ground_hog/model
ERROR: service [/config_manager/save_param] responded with an error: error processing request: No JSON object could be decoded
and the datacentre prints this:
[ERROR] [WallTime: 1405524273.957850] Error processing request: No JSON object could be decoded
['Traceback (most recent call last):\n', ' File "/opt/ros/hydro/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 623, in _handle_request\n response = convert_return_to_response(self.handler(request), self.response_class)\n', ' File "/home/cdondrup/ros-ws/src/ros_datacentre/ros_datacentre/scripts/config_manager.py", line 167, in _saveparam_srv_cb\n new = json.loads(mystring)\n', ' File "/usr/lib/python2.7/json/__init__.py", line 326, in loads\n return _default_decoder.decode(s)\n', ' File "/usr/lib/python2.7/json/decoder.py", line 366, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n', ' File "/usr/lib/python2.7/json/decoder.py", line 384, in raw_decode\n raise ValueError("No JSON object could be decoded")\n', 'ValueError: No JSON object could be decoded\n']
I also tried to load it on start-up of the config manager by putting it into the defaults directory which produces the following error:
[INFO] [WallTime: 1405523887.137948] New default parameter for /ground_hog/model
/usr/local/lib/python2.7/dist-packages/pymongo/collection.py:362: RuntimeWarning: couldn't encode - reloading python modules and trying again. if you see this without getting an InvalidDocument exception please see http://api.mongodb.org/python/current/faq.html#does-pymongo-work-with-mod-wsgi
self.database.connection)
Traceback (most recent call last):
File "/home/cdondrup/ros-ws/src/ros_datacentre/ros_datacentre/scripts/config_manager.py", line 181, in <module>
server = ConfigManager()
File "/home/cdondrup/ros-ws/src/ros_datacentre/ros_datacentre/scripts/config_manager.py", line 62, in __init__
"from_file":filename})
File "/usr/local/lib/python2.7/dist-packages/pymongo/collection.py", line 362, in insert
self.database.connection)
bson.errors.InvalidDocument: Cannot encode object: <xmlrpclib.Binary instance at 0x3538998>
Any idea how to fix this or a suggestion for a better way of storing binaries?
The text was updated successfully, but these errors were encountered:
I am currently trying to get rid of all the config files the ppl perception still needs because this often breaks if launched remotely using the machine tag (weird ros behaviour which requires hard coding of the paths instead of using the
find
tag and therefore it breaks on robots that don't use the standard set-up). The HOG feature extraction uses a binary model file which I can store on the ROS parameter server and also dump to a yaml file afterwards. Here is the file I would like to use for the config manager:trying to load this to the param server
rosparam load my_file.yaml
works fine but if I try to save it to the data centre I get the following:and the datacentre prints this:
I also tried to load it on start-up of the config manager by putting it into the defaults directory which produces the following error:
Any idea how to fix this or a suggestion for a better way of storing binaries?
The text was updated successfully, but these errors were encountered: