<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head><body><p>No, that didn't do the trick unfortunately.<br></p><p>[Had tested it already, sorry for not mentioning.]<br></p><blockquote type="cite"><p>Steffen Planthaber <Steffen.Planthaber@dfki.de> hat am 19. August 2015 um 16:23 geschrieben:<br><br><br>Hi,<br><br>Could be the parser has trouble with the e notation.<br><br>Please try:<br><br># curl -X POST -H "Content-Type: application/json" -d<br> > '{"value":{"translation":0,"rotation":0}}'<br> > <br>http://192.168.10.10:9292/api/tasks/tasks/localhost/skid4_control/ports/motion_command/write<br><br><br><br><br>Am 19.08.2015 um 15:31 schrieb Martin Schroeer:<br>> Hi there.<br>><br>> I'm trying to use the REST interface of an ASGUARD to have it moving around.<br>> Querying the interface for a input sample<br>><br>> # curl<br>> http:/192.168.10.10:9292/api/tasks/tasks/localhost/skid4_control/ports/motion_command/sample<br>><br>> gives me<br>><br>> {"value":{"translation":5.3281e-316,"rotation":6.934147e-310}}<br>><br>> But if I try to write this very sample like<br>><br>> # curl -X POST -H "Content-Type: application/json" -d<br>> '{"value":{"translation":5.3281e-316,"rotation":6.934147e-310}}'<br>> http://192.168.10.10:9292/api/tasks/tasks/localhost/skid4_control/ports/motion_command/write<br>><br>> it just gives me<br>><br>> {"error":"malformed JSON string: #<Hashie::Mash<br>> rotation=6.934147e-310 translation=5.3281e-316>"}<br>><br>> What am I doing wrong here ?<br>><br>><br>> Regards,<br>> Martin<br>><br><br><br>-- <br> Steffen Planthaber<br> Weltraumrobotik<br><br> Besuchsadresse der Nebengeschäftstelle:<br> DFKI GmbH<br> Robotics Innovation Center<br> Robert-Hooke-Straße 5<br> 28359 Bremen, Germany<br><br> Postadresse der Hauptgeschäftsstelle Standort Bremen:<br> DFKI GmbH<br> Robotics Innovation Center<br> Robert-Hooke-Straße 1<br> 28359 Bremen, Germany<br><br> Tel.: +49 421 178 45-4125<br> Zentrale: +49 421 178 45-0<br> Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen)<br> E-Mail: Steffen.Planthaber@dfki.de<br><br> Weitere Informationen: http://www.dfki.de/robotik<br> -----------------------------------------------------------------------<br> Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH<br> Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern<br> Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster<br> (Vorsitzender) Dr. Walter Olthoff<br> Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes<br> Amtsgericht Kaiserslautern, HRB 2313<br> Sitz der Gesellschaft: Kaiserslautern (HRB 2313)<br> USt-Id.Nr.: DE 148646973<br> Steuernummer: 19/673/0060/3<br> -----------------------------------------------------------------------<br><br>_______________________________________________<br>Rock-dev mailing list<br>Rock-dev@dfki.de<br>http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev<br></p></blockquote></body></html>