Clone the repository and run the setup script. WARNING!
$ chmod +x
$ sudo setup.sh
After setting up drogon, then
$ export PATH=</path/to/drogon>/install/bin:$PATH
Build the project
$ cd build
$ cmake ..
$ make -j8
If everything runs smoothly, then
$ sudo ./example
Then open a brower and type in the url "http://127.0.0.1/RESTApi/WhatEverThing" Check the Terminal running the "./example"
For modifying the functionality, you will need to modify the files in "drogonexample/controller", e.g. RESTApi.cc
...
std::string command{"echo HELO"}; //The command you would like to run
if ( "Autoware.command.code1" == action ){
command = "echo Command A";
} else if ( "Autoware.command.code2" == action ){
command = "echo Command B";
} else {
command = "echo Command C";
}
...