test_json_ld.c
Go to the documentation of this file.
00001 #include "../csm/csm_all.h"
00002 
00003 int main() {
00004         JO jo; /* the monkey */
00005         LDP ld;
00006         
00007         while((jo = json_read_stream(stdin))) {
00008                 if(!(ld = json_to_ld(jo))) {
00009                         fprintf(stderr, "Could not transform to laser_data:\n\n");
00010                         fprintf(stderr, "-----\n");
00011                         fprintf(stderr, "%s", json_object_to_json_string(jo));
00012                         fprintf(stderr, "-----\n");
00013                         continue;
00014                 }
00015                 
00016                 jo = ld_to_json(ld);
00017                 printf("%s", json_object_to_json_string(jo));
00018                 printf("\n");
00019         }
00020         
00021         return 0;
00022 }


csm
Author(s): Andrea Censi
autogenerated on Fri May 17 2019 02:28:33