Skip to content

Commit

Permalink
update file comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kerikun11 committed May 4, 2020
1 parent 69a64fe commit 3f42b29
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 10 deletions.
6 changes: 6 additions & 0 deletions examples/accel/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file main.cpp
* @author Ryotaro Onuki (kerikun11+github@gmail.com)
* @brief This file evaluates the performance of acceleration curves.
* @date 2020-05-04
*/
#include "accel_designer.h"

#include <chrono>
Expand Down
6 changes: 6 additions & 0 deletions examples/continuous/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file main.cpp
* @author Ryotaro Onuki (kerikun11+github@gmail.com)
* @brief This file evaluates the performance of acceleration curves.
* @date 2020-05-04
*/
#include "accel_designer.h"

#include "feedback_controller.h"
Expand Down
26 changes: 16 additions & 10 deletions examples/shape/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file main.cpp
* @author Ryotaro Onuki (kerikun11+github@gmail.com)
* @brief This file generates slalom shapes for each turn of the micromouse.
* @date 2020-05-04
*/
#include "slalom.h"

#include <filesystem>
Expand Down Expand Up @@ -42,8 +48,8 @@ void printDefinition(std::ostream &os, const std::string &name,
}

void printDefinitions() {
for (const auto &e : shapes)
printDefinition(std::cout, e.first, e.second);
for (const auto &[name, shape] : shapes)
printDefinition(std::cout, name, shape);
std::cout << std::endl;
}

Expand Down Expand Up @@ -99,14 +105,14 @@ void printTrajectory() {
}

void printTable() {
for (const auto &e : shapes) {
std::cout << "|" << e.first;
std::cout << "|" << e.second.total.th / M_PI * 180;
std::cout << "|(" << e.second.total.x << "," << e.second.total.y << ")";
std::cout << "|(" << e.second.curve.x << "," << e.second.curve.y << ")";
std::cout << "|" << e.second.v_ref;
std::cout << "|" << e.second.straight_prev;
std::cout << "|" << e.second.straight_post;
for (const auto &[name, shape] : shapes) {
std::cout << "|" << name;
std::cout << "|" << shape.total.th / M_PI * 180;
std::cout << "|(" << shape.total.x << "," << shape.total.y << ")";
std::cout << "|(" << shape.curve.x << "," << shape.curve.y << ")";
std::cout << "|" << shape.v_ref;
std::cout << "|" << shape.straight_prev;
std::cout << "|" << shape.straight_post;
std::cout << "|" << std::endl;
}
std::cout << std::endl;
Expand Down
6 changes: 6 additions & 0 deletions examples/slalom/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file main.cpp
* @author Ryotaro Onuki (kerikun11+github@gmail.com)
* @brief slalom trajectory generation example
* @date 2020-05-04
*/
#include "slalom.h"

#include <cmath>
Expand Down
6 changes: 6 additions & 0 deletions examples/trajectory/main.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @file main.cpp
* @author Ryotaro Onuki (kerikun11+github@gmail.com)
* @brief trajectory tracking
* @date 2020-05-04
*/
#include "straight.h"
#include "trajectory_tracker.h"

Expand Down

0 comments on commit 3f42b29

Please sign in to comment.