[Rock-dev] REST interface not working ?
Martin Schroeer
martin.schroeer at dfki.de
Wed Aug 19 15:31:14 CEST 2015
Hi there.
I'm trying to use the REST interface of an ASGUARD to have it moving around.
Querying the interface for a input sample
# curl
http:/192.168.10.10:9292/api/tasks/tasks/localhost/skid4_control/ports/motion_command/sample
gives me
{"value":{"translation":5.3281e-316,"rotation":6.934147e-310}}
But if I try to write this very sample like
# curl -X POST -H "Content-Type: application/json" -d
'{"value":{"translation":5.3281e-316,"rotation":6.934147e-310}}'
http://192.168.10.10:9292/api/tasks/tasks/localhost/skid4_control/ports/motion_command/write
it just gives me
{"error":"malformed JSON string: #<Hashie::Mash
rotation=6.934147e-310 translation=5.3281e-316>"}
What am I doing wrong here ?
Regards,
Martin
--
Dipl. Inf., Dipl. Psych. Martin Schröer
Team Interaction
Universität Bremen
FB 3 - Mathematik und Informatik
AG Robotik
Robert-Hooke-Straße 1
28359 Bremen, Germany
Tel.: +49 421 178 45-6644
Zentrale: +49 421 178 45-6611
Fax: +49 421 178 45-4150
E-Mail: martin.schroeer at dfki.de
Weitere Informationen: http://www.informatik.uni-bremen.de/robotik
More information about the Rock-dev
mailing list