Tutorials/code examples can be found in the developer's guide that is also part of the openTCS distribution.