forked from ros-industrial/stomp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_pages.dox
40 lines (26 loc) · 1.22 KB
/
example_pages.dox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
@page stomp_examples stomp examples
@tableofcontents
@section stomp_example Optimize with STOMP
The full example program can be found in file @ref stomp_example_code
@subsection task_implementation Define a Simple Task Implementation
Create a class that implements the stomp::Task as shown below
@snippet examples/simple_optimization_task.h SimpleOptimizationTask Inherit
For full details look at stomp_examples::SimpleOptimizationTask
@subsection instantiate_task Instantiate a Task Object
Create an instance of the SimpleOptimizationTask defined in the previous step
@snippet examples/stomp_example.cpp Create Task Object
@subsection create_config Create a STOMP config object
Populate the stomp::StompConfiguration object as shown below:
@snippet examples/stomp_example.cpp Create Config
@subsection create_stomp Create an STOMP instance
Create an instance of STOMP using the Task and Configuration objects created in previous steps
@snippet examples/stomp_example.cpp Create STOMP
@subsection solve Call the Solve Method
Call the <b>solve</b> method and check the result
@snippet examples/stomp_example.cpp Solve
*/
/**
@page stomp_example_code stomp_example.cpp
@include stomp_example.cpp
*/