Galaxis Codebase  1.0.0
Team Galaxis software stack for the Carolo Cup 2023 - ROS2 based software
pose.cpp
Go to the documentation of this file.
1 #include "control/pose.hpp"
2 
3 #include <iostream>
4 #include <Eigen/Dense>
5 
6 using namespace galaxis::control;
7 
8 CarPose::CarPose(Eigen::Vector2f const& position, float orientation) {
9  this->orientation = orientation;
10  this->position = position;
11 }
12 
13 std::ostream& operator<<(std::ostream& strm, CarPose const& pose) {
14  return strm << "(" << pose.position[0] << ", " << pose.position[1] << "; " << pose.orientation << ")";
15 }
galaxis::control::CarPose::position
Eigen::Vector2f position
Definition: pose.hpp:13
pose.hpp
galaxis::control::CarPose::CarPose
CarPose(Eigen::Vector2f const &position=Eigen::Vector2f(0.0, 0.0), float orientation=0)
Definition: pose.cpp:8
galaxis::lina::Vector2f
Eigen::Vector2f Vector2f
Definition: linatypes.hpp:14
galaxis::control
Definition: control.hpp:24
galaxis::control::CarPose::orientation
float orientation
Definition: pose.hpp:14
galaxis::control::CarPose
Definition: pose.hpp:11
galaxis::control::operator<<
std::ostream & operator<<(std::ostream &strm, CarPose const &pose)
Definition: pose.cpp:13