Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
slimeth committed Dec 7, 2020
1 parent 98cd5b1 commit b18d026
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions flightros/src/racing/racing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,14 @@ int main(int argc, char *argv[]) {
std::make_shared<StaticGate>(object_id, prefab_id);
gate_1->setPosition(Eigen::Vector3f(5, 0, 2.5));
gate_1->setRotation(
Quaternion(std::cos(0.5 * M_PI_2), 0.0, 0.0, std::sin(0.5 * M_PI_2)));
Quaternion(std::cos(1 * M_PI_2), 0.0, 0.0, std::sin(1 * M_PI_2)));

std::string object_id_2 = "unity_gate_2";
std::shared_ptr<StaticGate> gate_2 =
std::make_unique<StaticGate>(object_id_2, prefab_id);
std::make_shared<StaticGate>(object_id_2, prefab_id);
gate_2->setPosition(Eigen::Vector3f(-5, 0, 2.5));
gate_2->setRotation(
Quaternion(std::cos(0.5 * M_PI_2), 0.0, 0.0, std::sin(0.5 * M_PI_2)));

Quaternion(std::cos(1 * M_PI_2), 0.0, 0.0, std::sin(1 * M_PI_2)));

// Define path through gates
std::vector<Eigen::Vector3d> way_points;
Expand Down

0 comments on commit b18d026

Please sign in to comment.