|
bool | connectMsgConnector () |
|
const std::string & | interpreteJson (const std::string &u) |
|
configPt | getConfFromJointsPos (p3d_rob *robot, HumanJoints &data) |
| Computes a condfiguration from a set of points.
|
|
void | readFromFile (std::string path) |
| read the file with the given path this file must be under json format, with all the commands numbered starting from 0: { "0": {command}, "1":{another command}, ... More...
|
|
void | updateScenario (std::string rootStr) |
| Change the current scene following the details in the param. More...
|
|
void HATPConnection::readFromFile |
( |
std::string |
path | ) |
|
read the file with the given path this file must be under json format, with all the commands numbered starting from 0: { "0": {command}, "1":{another command}, ...
} note: each command is interpreted using interpreteJson()
- Parameters
-
| path is the path to the file |
void HATPConnection::updateScenario |
( |
std::string |
rootStr | ) |
|
Change the current scene following the details in the param.
- Parameters
-
rootStr | details on what to change (mainly object positions) (json on string) the value should be build as follow "rotType": "deg", //or "rad" to define if it is radian or degree norm "startDof":0, //can be any int (mainly 0 or 6) to specify from what number begins the dof numbers "values": [ {"OBJECT_NAME":[ {"x":val} // x is the dof number (begining from startDof) val its value {"y":[min,max]} //min and max means that y value should be random between this values. ] } ] |
The documentation for this class was generated from the following files: