<!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&#39;t do the trick unfortunately.<br></p><p>[Had tested it already, sorry for not mentioning.]<br></p><blockquote type="cite"><p>Steffen Planthaber &#60;Steffen.Planthaber@dfki.de&#62; 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 &#34;Content-Type: application/json&#34; -d<br> &#62; &#39;{&#34;value&#34;:{&#34;translation&#34;:0,&#34;rotation&#34;:0}}&#39;<br> &#62; <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>&#62; Hi there.<br>&#62;<br>&#62; I&#39;m trying to use the REST interface of an ASGUARD to have it moving around.<br>&#62; Querying the interface for a input sample<br>&#62;<br>&#62; # curl<br>&#62; http:/192.168.10.10:9292/api/tasks/tasks/localhost/skid4_control/ports/motion_command/sample<br>&#62;<br>&#62; gives me<br>&#62;<br>&#62; {&#34;value&#34;:{&#34;translation&#34;:5.3281e-316,&#34;rotation&#34;:6.934147e-310}}<br>&#62;<br>&#62; But if I try to write this very sample like<br>&#62;<br>&#62; # curl -X POST -H &#34;Content-Type: application/json&#34; -d<br>&#62; &#39;{&#34;value&#34;:{&#34;translation&#34;:5.3281e-316,&#34;rotation&#34;:6.934147e-310}}&#39;<br>&#62; http://192.168.10.10:9292/api/tasks/tasks/localhost/skid4_control/ports/motion_command/write<br>&#62;<br>&#62; it just gives me<br>&#62;<br>&#62; {&#34;error&#34;:&#34;malformed JSON string: #&#60;Hashie::Mash<br>&#62; rotation=6.934147e-310 translation=5.3281e-316&#62;&#34;}<br>&#62;<br>&#62; What am I doing wrong here ?<br>&#62;<br>&#62;<br>&#62; Regards,<br>&#62; Martin<br>&#62;<br><br><br>-- <br> Steffen Planthaber<br> Weltraumrobotik<br><br> Besuchsadresse der Nebengesch&#228;ftstelle:<br> DFKI GmbH<br> Robotics Innovation Center<br> Robert-Hooke-Stra&#223;e 5<br> 28359 Bremen, Germany<br><br> Postadresse der Hauptgesch&#228;ftsstelle Standort Bremen:<br> DFKI GmbH<br> Robotics Innovation Center<br> Robert-Hooke-Stra&#223;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&#223;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>