TechTheTime-HighLevel 0.0.1
The high level robot's code using ros2-foxy for the robotics competition(Erobot-2022)
joystick.cpp File Reference
#include "joystick.hpp"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <iostream>
#include <string>
#include <sstream>
#include "unistd.h"

Functions

std::ostream & operator<< (std::ostream &os, const JoystickEvent &e)
 Stream insertion function so you can do this: cout << event << endl;. More...
 

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const JoystickEvent e 
)

Stream insertion function so you can do this: cout << event << endl;.

The ostream inserter needs to be a friend so it can access the internal data structures.