Class GazeboProcess

Class Documentation

class GazeboProcess

Helper class to run gzserver in a separate process and later terminate that process.

Public Functions

explicit GazeboProcess(const std::vector<const char*> &args)

Start gzserver with a list of arguments

Note

The path and &#8212;verbose are automatically added

~GazeboProcess()

Destructor.

int Run()

Start gzserver with the arguments passed to constructor

Returns:

The result of fork(), either the pid of gazebo process or error if < 0

int Terminate()

Terminate the child gzserver process

Returns:

-1 if run() failed or has not been called,