Skip to content

Commit

Permalink
Updated process manager examples to add default profiles and use only…
Browse files Browse the repository at this point in the history
… default profile names
  • Loading branch information
marip8 committed Jan 9, 2022
1 parent 57df7d4 commit b10353f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ int main()
// Create Process Planning Server
ProcessPlanningServer planning_server(std::make_shared<ProcessEnvironmentCache>(env), 1);
planning_server.loadDefaultProcessPlanners();
planning_server.loadDefaultProfiles();

// Create Process Planning Request
ProcessPlanningRequest request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ int main()
// Create Process Planning Server
ProcessPlanningServer planning_server(std::make_shared<ProcessEnvironmentCache>(env), 5);
planning_server.loadDefaultProcessPlanners();
planning_server.loadDefaultProfiles();

// Solve process plan
using Clock = std::chrono::high_resolution_clock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,14 @@ int main()
// Create Process Planning Server
ProcessPlanningServer planning_server(std::make_shared<ProcessEnvironmentCache>(env), 1);
planning_server.loadDefaultProcessPlanners();
planning_server.loadDefaultProfiles();

// Create Process Planning Request
ProcessPlanningRequest request;
request.name = process_planner_names::RASTER_G_FT_PLANNER_NAME;

// Define the program
CompositeInstruction program = rasterExampleProgram();
CompositeInstruction program = rasterExampleProgram(DEFAULT_PROFILE_KEY, DEFAULT_PROFILE_KEY);
request.instructions = Instruction(program);

// Print Diagnostics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ int main()
// Create Process Planning Server
ProcessPlanningServer planning_server(std::make_shared<ProcessEnvironmentCache>(env), 1);
planning_server.loadDefaultProcessPlanners();
planning_server.loadDefaultProfiles();

for (int idx = -10; idx < 10; idx++)
{
Expand Down

0 comments on commit b10353f

Please sign in to comment.