repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
gabrielefronze/TSystFitter | TSystFitter.h | //
// Created by <NAME> on 25/06/2017.
//
#ifndef TSYSTFITTER_H
#define TSYSTFITTER_H
#include "TH1.h"
#include "TSystFitSettings.h"
#include <utility>
#include <vector>
#include <TVirtualPad.h>
class TSystFitter {
public:
explicit TSystFitter(TH1 *histToFit) : fHistToFit((TH1*)histToFit->Clone("histToFit")){};... |
7h30n3/hyperion.ng | include/webconfig/WebConfig.h | <reponame>7h30n3/hyperion.ng<filename>include/webconfig/WebConfig.h
#ifndef WEBCONFIG_H
#define WEBCONFIG_H
#include <QObject>
#include <QString>
#include <string>
#include <hyperion/Hyperion.h>
class StaticFileServing;
class WebConfig : public QObject {
Q_OBJECT
public:
WebConfig (QObject * parent = NULL);
vir... |
7h30n3/hyperion.ng | include/jsonserver/JsonServer.h | #pragma once
// system includes
#include <cstdint>
// Qt includes
#include <QTcpServer>
#include <QSet>
// Hyperion includes
#include <hyperion/Hyperion.h>
#include <utils/Logger.h>
class JsonClientConnection;
///
/// This class creates a TCP server which accepts connections wich can then send
/// in JSON encoded ... |
7h30n3/hyperion.ng | src/hyperiond/configMigratorBase.h | #pragma once
#include <utils/Logger.h>
#include <QString>
class ConfigMigratorBase
{
public:
ConfigMigratorBase();
~ConfigMigratorBase();
protected:
Logger * _log;
}; |
7h30n3/hyperion.ng | include/grabber/AmlogicGrabber.h | <reponame>7h30n3/hyperion.ng
#pragma once
// STL includes
#include <cstdint>
#include <utils/Logger.h>
// Utils includes
#include <utils/Image.h>
#include <utils/ColorBgr.h>
#include <utils/VideoMode.h>
///
/// The DispmanxFrameGrabber is used for creating snapshots of the display (screenshots) with a
/// downsized a... |
7h30n3/hyperion.ng | include/utils/RgbTransform.h | <reponame>7h30n3/hyperion.ng
#pragma once
// STL includes
#include <cstdint>
///
/// Color transformation to adjust the saturation and value of a RGB color value
///
class RgbTransform
{
public:
///
/// Default constructor
///
RgbTransform();
///
/// Constructor
///
/// @param gammaR The used red gamma
/// ... |
7h30n3/hyperion.ng | include/utils/GrabbingMode.h | <reponame>7h30n3/hyperion.ng
#pragma once
/**
* Enumeration of the possible modes in which frame-grabbing is performed.
*/
enum GrabbingMode
{
/** Frame grabbing is switched off */
GRABBINGMODE_OFF,
/** Frame grabbing during video */
GRABBINGMODE_VIDEO,
GRABBINGMODE_PAUSE,
GRABBINGMODE_PHOTO,
GRABBINGMODE_AUD... |
7h30n3/hyperion.ng | include/utils/RgbChannelAdjustment.h | #pragma once
// STL includes
#include <cstdint>
#include <QString>
#include <utils/Logger.h>
/// Correction for a single color byte value
/// All configuration values are unsigned int and assume the color value to be between 0 and 255
class RgbChannelAdjustment
{
public:
/// Default constructor
RgbChannelAdjustment... |
7h30n3/hyperion.ng | libsrc/jsonserver/JsonClientConnection.h | #pragma once
// stl includes
#include <string>
// Qt includes
#include <QByteArray>
#include <QTcpSocket>
#include <QMutex>
// Hyperion includes
#include <hyperion/Hyperion.h>
// util includes
#include <utils/jsonschema/QJsonSchemaChecker.h>
#include <utils/Logger.h>
#include <utils/Components.h>
class ImageProces... |
7h30n3/hyperion.ng | libsrc/webconfig/QtHttpServer.h | #ifndef QTHTTPSERVER_H
#define QTHTTPSERVER_H
#include <QObject>
#include <QString>
#include <QHash>
class QTcpSocket;
class QTcpServer;
class QtHttpRequest;
class QtHttpReply;
class QtHttpClientWrapper;
class QtHttpServer : public QObject {
Q_OBJECT
public:
explicit QtHttpServer (QObject * parent = Q_NULL... |
7h30n3/hyperion.ng | include/effectengine/EffectDefinition.h | <filename>include/effectengine/EffectDefinition.h
#pragma once
// QT include
#include <QString>
#include <QJsonObject>
struct EffectDefinition
{
QString name, script, file;
QJsonObject args;
};
|
7h30n3/hyperion.ng | src/hyperiond/configMigrator.h | <gh_stars>0
#pragma once
#include "configMigratorBase.h"
#include <QString>
///
/// class that contains migration code
/// helper code goeas to base class
class ConfigMigrator : public ConfigMigratorBase
{
public:
ConfigMigrator();
~ConfigMigrator();
bool migrate(QString configFile, int fromVersion,int toVersio... |
7h30n3/hyperion.ng | libsrc/leddevice/LedDevicePiBlaster.h | #pragma once
// Hyperion-Leddevice includes
#include <leddevice/LedDevice.h>
///
/// Implementation of the LedDevice interface for writing to pi-blaster based PWM LEDs
///
class LedDevicePiBlaster : public LedDevice
{
public:
///
/// Constructs specific LedDevice
///
/// @param deviceConfig json device config
/... |
7h30n3/hyperion.ng | include/grabber/V4L2Grabber.h | #pragma once
// stl includes
#include <string>
#include <vector>
#include <map>
// Qt includes
#include <QObject>
#include <QSocketNotifier>
#include <QRectF>
// util includes
#include <utils/Image.h>
#include <utils/ColorRgb.h>
#include <utils/PixelFormat.h>
#include <utils/VideoMode.h>
#include <utils/ImageResampl... |
7h30n3/hyperion.ng | libsrc/leddevice/LedDeviceRawHID.h | <filename>libsrc/leddevice/LedDeviceRawHID.h
#pragma once
// Qt includes
#include <QTimer>
// hyperion include
#include "ProviderHID.h"
///
/// Implementation of the LedDevice interface for writing to an RawHID led device.
///
class LedDeviceRawHID : public ProviderHID
{
Q_OBJECT
public:
///
/// Constructs speci... |
7h30n3/hyperion.ng | libsrc/hyperion/LinearColorSmoothing.h | <gh_stars>0
#pragma once
// STL includes
#include <string>
#include <vector>
// Qt includes
#include <QTimer>
// hyperion incluse
#include <leddevice/LedDevice.h>
#include <utils/Components.h>
/// Linear Smooting class
///
/// This class processes the requested led values and forwards them to the device after appl... |
7h30n3/hyperion.ng | include/commandline/DoubleOption.h | <reponame>7h30n3/hyperion.ng<filename>include/commandline/DoubleOption.h
#ifndef HYPERION_DOUBLECOMMANDLINEOPTION_H
#define HYPERION_DOUBLECOMMANDLINEOPTION_H
#include <QtCore>
#include "ValidatorOption.h"
namespace commandline
{
class DoubleOption: public ValidatorOption
{
protected:
double _double;
public:
... |
7h30n3/hyperion.ng | include/protoserver/ProtoConnectionWrapper.h | <gh_stars>0
// Qt includes
#include <QObject>
// hyperion includes
#include <utils/Image.h>
#include <utils/ColorRgb.h>
#include <utils/GrabbingMode.h>
#include <utils/VideoMode.h>
// hyperion proto includes
#include "protoserver/ProtoConnection.h"
/// This class handles callbacks from the V4L2 and X11 grabber
class... |
7h30n3/hyperion.ng | libsrc/leddevice/LedDeviceFadeCandy.h | <filename>libsrc/leddevice/LedDeviceFadeCandy.h
#pragma once
// STL/Qt includes
#include <QTcpSocket>
// Leddevice includes
#include <leddevice/LedDevice.h>
///
/// Implementation of the LedDevice interface for sending to
/// fadecandy/opc-server via network by using the 'open pixel control' protocol.
///
class LedD... |
7h30n3/hyperion.ng | include/commandline/Option.h | #ifndef HYPERION_OPTION_H
#define HYPERION_OPTION_H
#include <QCommandLineOption>
#include <QCommandLineParser>
namespace commandline
{
class Parser;
/* Note, this class and all it's derivatives store the validated results for caching. This means that unlike the
* regular QCommandLineOption it is _not_ idempotent!... |
7h30n3/hyperion.ng | libsrc/hyperion/MultiColorAdjustment.h | <gh_stars>0
#pragma once
// STL includes
#include <vector>
// Utils includes
#include <utils/ColorRgb.h>
// Hyperion includes
#include <hyperion/ColorAdjustment.h>
///
/// The LedColorTransform is responsible for performing color transformation from 'raw' colors
/// received as input to colors mapped to match the c... |
7h30n3/hyperion.ng | include/utils/FileUtils.h | #pragma once
#include <QString>
namespace FileUtils {
QString getBaseName( QString sourceFile);
QString getDirName( QString sourceFile);
};
|
7h30n3/hyperion.ng | include/grabber/DispmanxWrapper.h | #pragma once
// Utils includes
#include <utils/Image.h>
#include <utils/ColorRgb.h>
#include <utils/ColorRgba.h>
#include <utils/GrabbingMode.h>
#include <utils/VideoMode.h>
#include <hyperion/GrabberWrapper.h>
// Forward class declaration
class DispmanxFrameGrabber;
class ImageProcessor;
///
/// The DispmanxWrapper... |
7h30n3/hyperion.ng | include/grabber/X11Grabber.h |
// Hyperion-utils includes
#include <utils/Image.h>
#include <utils/ColorRgb.h>
#include <utils/ImageResampler.h>
#include <utils/Logger.h>
// X11 includes
#include <X11/Xlib.h>
#include <X11/extensions/Xrender.h>
#include <X11/extensions/XShm.h>
#include <sys/ipc.h>
#include <sys/shm.h>
class X11Grabber
{
public:
... |
7h30n3/hyperion.ng | src/hyperiond/hyperiond.h | #pragma once
#include <QObject>
#ifdef ENABLE_DISPMANX
#include <grabber/DispmanxWrapper.h>
#else
typedef QObject DispmanxWrapper;
#endif
#ifdef ENABLE_V4L2
#include <grabber/V4L2Wrapper.h>
#else
typedef QObject V4L2Wrapper;
#endif
#ifdef ENABLE_FB
#include <grabber/FramebufferWrapper.h>
#else
typedef QObject... |
7h30n3/hyperion.ng | include/hyperion/GrabberWrapper.h | #pragma once
#include <QObject>
#include <QTimer>
#include <string>
#include <utils/Logger.h>
#include <utils/Components.h>
#include <utils/GrabbingMode.h>
#include <hyperion/Hyperion.h>
class ImageProcessor;
class GrabberWrapper : public QObject
{
Q_OBJECT
public:
GrabberWrapper(std::string grabberName, const i... |
7h30n3/hyperion.ng | include/grabber/FramebufferFrameGrabber.h | <reponame>7h30n3/hyperion.ng
#pragma once
// Utils includes
#include <utils/Image.h>
#include <utils/ColorRgb.h>
#include <utils/VideoMode.h>
#include <utils/ImageResampler.h>
#include <utils/Logger.h>
///
/// The FramebufferFrameGrabber is used for creating snapshots of the display (screenshots)
///
class Framebuff... |
7h30n3/hyperion.ng | libsrc/leddevice/LedDeviceTinkerforge.h | <gh_stars>0
#pragma once
// STL includes
#include <cstdio>
// Hyperion-Leddevice includes
#include <leddevice/LedDevice.h>
extern "C" {
#include <tinkerforge/ip_connection.h>
#include <tinkerforge/bricklet_led_strip.h>
}
class LedDeviceTinkerforge : public LedDevice
{
public:
///
/// Constructs specific LedDev... |
7h30n3/hyperion.ng | include/utils/RgbToRgbw.h | #pragma once
#include <utils/ColorRgb.h>
#include <utils/ColorRgbw.h>
namespace RGBW {
enum WhiteAlgorithm { INVALID, SUBTRACT_MINIMUM, SUB_MIN_WARM_ADJUST, WHITE_OFF };
WhiteAlgorithm stringToWhiteAlgorithm(std::string str);
void Rgb_to_Rgbw(ColorRgb input, ColorRgbw * output, const WhiteAlgorithm algorithm);
... |
benkehoe/cpython | Parser/pegen_errors.c | #include <Python.h>
#include <errcode.h>
#include "tokenizer.h"
#include "pegen.h"
// TOKENIZER ERRORS
void
_PyPegen_raise_tokenizer_init_error(PyObject *filename)
{
if (!(PyErr_ExceptionMatches(PyExc_LookupError)
|| PyErr_ExceptionMatches(PyExc_SyntaxError)
|| PyErr_ExceptionMatches(PyExc_Va... |
lewis180777/YHNetwork | YHNetwork/YHNetwork.h | //
// YHNetwork.h
// YHNetwork
//
// Created by 陈亦海 on 16/2/19.
// Copyright © 2016年 陈亦海. All rights reserved.
//
//! Project version number for YHNetwork.
FOUNDATION_EXPORT double YHNetworkVersionNumber;
//! Project version string for YHNetwork.
FOUNDATION_EXPORT const unsigned char YHNetworkVersionString[];
/... |
lewis180777/YHNetwork | Example/YHNetwork/YHViewController.h | <gh_stars>0
//
// YHViewController.h
// YHNetwork
//
// Created by lewis180777 on 04/10/2017.
// Copyright (c) 2017 lewis180777. All rights reserved.
//
@import UIKit;
@interface YHViewController : UIViewController
@end
|
P8P-7/core | src/modules/motor-controller/include/goliath/motor-controller/motor_handle.h | #pragma once
#include <goliath/foundation.h>
#include "motor_controller.h"
namespace goliath::handles {
class MotorHandle : public Handle {
public:
MotorHandle(const size_t &handleId, const motor_controller::MotorId motorId)
: Handle(handleId), id(motorId) {}
motor_controller::Mot... |
P8P-7/core | src/modules/servo/include/goliath/servo/wings/commandbuilder/wing_command_builder.h | #pragma once
#include <goliath/servo/repositories/wing_state_repository.h>
#include <goliath/servo/wings/wing_command.h>
#include <goliath/servo/wing_handle.h>
namespace goliath::servo {
class WingCommandBuilder {
public:
WingCommandBuilder();
explicit WingCommandBuilder(std::shared_ptr<handle... |
P8P-7/core | src/modules/servo/include/goliath/servo/wings/wing_controller.h | <filename>src/modules/servo/include/goliath/servo/wings/wing_controller.h
#pragma once
#include <goliath/servo/repositories/wing_state_repository.h>
#include <goliath/servo/wings/wing_command.h>
#include <goliath/servo/wing_handle.h>
#include <goliath/servo/servo_mode.h>
namespace goliath::servo {
class WingContr... |
P8P-7/core | src/modules/i2c/include/goliath/i2c/i2c_error.h | <gh_stars>1-10
#pragma once
#include <string>
#include <exception>
/**
* @file i2c_error.h
* @author Group 7 - Informatica
*/
namespace goliath::exceptions {
class I2cError : public std::exception {
public:
/**
* @param device i2c device for which the exception occurred
* @param ... |
P8P-7/core | src/modules/transitions/include/goliath/transitions/reel.h | #pragma once
#include <memory>
#include "phase.h"
#include "tickable.h"
/**
* @file reel.h
* @author Group 7 - Informatica
*/
namespace goliath::transitions {
/**
* @class goliath::transitions::Reel
* @brief Collection of phases that can be one after another
*/
class Reel : public Tickable... |
P8P-7/core | src/modules/vision/include/goliath/vision/detectors/within_box_detector.h | <reponame>P8P-7/core
#pragma once
#include "line_detector.h"
/**
* @file within_box_detector.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
const int DISTANCE_FROM_EDGE_THRESHOLD = 5;
const int DISTANCE_FOR_CORNER_THRESHOLD = 5;
class WithinBoxDetector : public LineDetector {
pu... |
P8P-7/core | src/controller/include/goliath/controller/commands/move_wing_command.h | <gh_stars>1-10
#pragma once
#include <goliath/servo.h>
#include "basic_command.h"
#include "../handles.h"
namespace goliath::commands {
class MoveWingCommand : public BasicCommand {
public:
MoveWingCommand(const size_t &id, std::shared_ptr<repositories::WingStateRepository> repository);
private... |
P8P-7/core | src/controller/include/goliath/controller/commands/wunderhorn_command.h | #pragma once
#include <goliath/vision.h>
#include <goliath/motor-controller.h>
#include "../handles.h"
#include "basic_command.h"
/**
* @file follow_line_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
/**
* @class goliath::commands::WunderhornCommand
* @brief Command tha... |
P8P-7/core | src/controller/include/goliath/controller/command_item.h | #pragma once
#include "commands/command.h"
/**
* @file command_item.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
enum class CommandStatus {
STARTING, /**< Command is just getting started */
STARTED, /**< Command has already started */
STALE /**< Command is doing n... |
P8P-7/core | src/modules/emotions/include/goliath/emotions/repositories/emotion_repository.h | <reponame>P8P-7/core<filename>src/modules/emotions/include/goliath/emotions/repositories/emotion_repository.h
#pragma once
#include <repositories/EmotionRepository.pb.h>
#include <goliath/foundation/repositories/repository.h>
/**
* @file emotion_repository.h
* @author Group 7 - Informatica
*/
namespace goliath::... |
P8P-7/core | src/modules/vision/include/goliath/vision/detectors/cup_detector.h | #pragma once
#include "detector.h"
/**
* @file cup_detector.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
const cv::Scalar COLOR_MIN(0, 254, 0);
const cv::Scalar COLOR_MAX(0, 255, 0);
constexpr double MIN_CONTOUR_SIZE = 500;
class CupDetector : public Detector {
public:
... |
P8P-7/core | src/controller/include/goliath/controller/repositories/battery_repository.h | #pragma once
#include <google/protobuf/message.h>
#include <goliath/foundation/repositories/polling_repository.h>
/**
* @file battery_repository.h
* @author Group 7 - Informatica
*/
namespace goliath::repositories {
/**
* @class goliath::repositories::BatteryRepository
* @brief Repository containing... |
P8P-7/core | src/modules/vision/include/goliath/vision/detectors/color_region_detector.h | <filename>src/modules/vision/include/goliath/vision/detectors/color_region_detector.h<gh_stars>1-10
#pragma once
#include "detector.h"
/**
* @file color_region_detector.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
/**
* @class goliath::vision::ColorRegionDetector
* @brief
*/... |
P8P-7/core | src/controller/include/goliath/controller/commands/obstacle_course_command.h | <filename>src/controller/include/goliath/controller/commands/obstacle_course_command.h
#pragma once
#include <goliath/vision.h>
#include <goliath/servo.h>
#include <goliath/motor-controller.h>
#include "basic_command.h"
#include "../handles.h"
/**
* @file obstacle_course_command.h
* @author Group 7 - Informatica
... |
P8P-7/core | src/modules/vision/include/goliath/vision/detectors/line_detector.h | <gh_stars>1-10
#pragma once
#include <memory>
#include "detector.h"
/**
* @file line_detector.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
/**
* @brief Default Rho
*/
const int DEFAULT_LINE_DETECTOR_RHO = 1;
/**
* @brief Default Theta
*/
const double DEFAUL... |
P8P-7/core | src/modules/vision/include/goliath/vision/util/vision_error.h | #pragma once
#include <exception>
#include <string>
/**
* @file vision_error.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::exceptions
* @brief Contains all custom exceptions
*/
namespace goliath::exceptions {
/**
* @class goliath::exceptions::VisionError
* @brief All errors ... |
P8P-7/core | src/modules/transitions/include/goliath/transitions.h | #pragma once
/**
* @file transitions.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::transitions
* @brief Module for smooth transitions between movements
*/
#include "transitions/methods/eases.h"
#include "transitions/util/transition_error.h"
#include "transitions/util/transition_utilities.h... |
P8P-7/core | src/controller/include/goliath/controller/repositories/system_status_repository.h | <gh_stars>1-10
#pragma once
#include <atomic>
#include <google/protobuf/message.h>
#include <goliath/foundation/repositories/polling_repository.h>
/**
* @file system_status_repository.h
* @author Group 7 - Informatica
*/
namespace goliath::repositories {
/**
* @class goliath::repositories::SystemStatusR... |
P8P-7/core | src/modules/gpio/include/goliath/gpio.h | <reponame>P8P-7/core<filename>src/modules/gpio/include/goliath/gpio.h
#pragma once
/**
* @file gpio/include/goliath/gpio.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::gpio
* @brief Contains all classes and function for interfacing the GPIO bus on the Raspberry Pi
*/
#include "gpio/gpio.h"
... |
P8P-7/core | src/modules/servo/include/goliath/servo/wings/wing_command.h | #pragma once
#include <goliath/servo/wing_handle.h>
#include <goliath/servo/servo_mode.h>
namespace goliath::servo {
struct WingCommand {
handles::WingHandle &handle;
std::uint16_t speed;
double angle;
servo::Direction direction;
};
} |
P8P-7/core | src/controller/include/goliath/controller/watcher.h | #pragma once
#include <goliath/foundation.h>
#include <goliath/controller/command_executor.h>
#include <atomic>
#include <thread>
#include <vector>
#include <memory>
#include <goliath/foundation/repositories/repository.h>
#include <goliath/foundation/publisher_service.h>
/**
* @file watcher.h
* @author Group 7 - ... |
P8P-7/core | src/modules/vision/include/goliath/vision/detectors/detector.h | <reponame>P8P-7/core<gh_stars>1-10
#pragma once
#include <opencv2/opencv.hpp>
/**
* @file detector.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
/**
* @class goliath::vision::Detector
* @brief Base class of detectors that take an input and detect a vector of shapes, colors or size... |
P8P-7/core | src/modules/motor-controller/include/goliath/motor-controller.h | #pragma once
#include "motor-controller/motor_controller.h"
#include "motor-controller/motor_handle.h"
|
P8P-7/core | src/controller/include/goliath/controller/commands/transport_rebuild_command.h | <gh_stars>1-10
#pragma once
#include "basic_command.h"
#include "../handles.h"
/**
* @file transport_rebuild_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
class TransportRebuildCommand : public BasicCommand {
public:
explicit TransportRebuildCommand(const size_t &id);
... |
P8P-7/core | src/controller/include/goliath/controller.h | #pragma once
/**
* @file controller.h
* @author Group 7 - Informatica
*/
#include "controller/repositories/config_repository.h"
#include "controller/repositories/command_status_repository.h"
#include "controller/repositories/battery_repository.h"
#include "controller/repositories/log_repository.h"
#include "contro... |
P8P-7/core | src/modules/transitions/include/goliath/transitions/phase.h | #pragma once
#include <chrono>
#include <functional>
#include <vector>
#include "tickable.h"
/**
* @file phase.h
* @author Group 7 - Informatica
*/
namespace goliath::transitions {
/**
* @class goliath::transitions::Phase
* @brief A piece of a reel with form
*/
class Phase {
public:
... |
P8P-7/core | src/modules/emotions/include/goliath/emotions/emotion_handle.h | <reponame>P8P-7/core
#pragma once
#include <goliath/foundation.h>
#include "repositories/emotion_repository.h"
namespace goliath::handles {
class EmotionHandle : public Handle {
public:
EmotionHandle(const size_t &handleId, const std::shared_ptr<repositories::EmotionRepository> &emotionRepository);
... |
P8P-7/core | src/modules/transitions/include/goliath/transitions/parallel_reel.h | #pragma once
#include <memory>
#include "tickable.h"
#include "reel.h"
/**
* @file parallel_reel.h
* @author Group 7 - Informatica
*/
namespace goliath::transitions {
/**
* @class goliath::transitions::ParallelReel
* @brief Runs multiple reels at the same time
*/
class ParallelReel : publi... |
P8P-7/core | src/modules/transitions/include/goliath/transitions/transition_executor.h | <filename>src/modules/transitions/include/goliath/transitions/transition_executor.h
#pragma once
#include <memory>
#include "tickable.h"
/**
* @file transition_executor.h
* @author Group 7 - Informatica
*/
namespace goliath::transitions {
/**
* @class goliath::transitions::TransitionExecutor
* @bri... |
P8P-7/core | src/controller/include/goliath/controller/handles.h | <filename>src/controller/include/goliath/controller/handles.h
#pragma once
/**
* @file handles.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::handles
* @brief Contains all handles and handle utilities
*/
#define HANDLE_LEFT_FRONT_WING_SERVO 0
#define HANDLE_LEFT_BACK_WING_SERVO 1
#define HANDLE_RI... |
P8P-7/core | src/modules/vision/include/goliath/vision/processors/roi_processor.h | <reponame>P8P-7/core
#pragma once
#include "processor.h"
/**
* @file roi_processor.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
/**
* @brief Takes an input and returns a ROI selection from that image
*/
class RoiProcessor : public Processor {
public:
/**
... |
P8P-7/core | src/controller/include/goliath/controller/commands/line_dance_command.h | #pragma once
#include <goliath/gpio.h>
#include <goliath/servo/wings/wing_command.h>
#include <goliath/servo/wings/wing_controller.h>
#include <goliath/servo/repositories/wing_state_repository.h>
#include "basic_command.h"
#include "../handles.h"
/**
* @file line_dance_command.h
* @author Group 7 - Informatica
*/... |
P8P-7/core | src/controller/include/goliath/controller/commands/synchronize_battery_voltage_command.h | #pragma once
#include <goliath/servo.h>
#include "basic_command.h"
#include "../handles.h"
#include "../repositories/battery_repository.h"
/**
* @file synchronize_battery_voltage_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
class SynchronizeBatteryVoltageCommand : public BasicCom... |
P8P-7/core | src/modules/openal/include/goliath/openal/util/openal_error.h | <reponame>P8P-7/core
#pragma once
#include <string>
/**
* @file openal_error.h
* @author Group 7 - Informatica
*/
namespace goliath::exceptions {
/**
* @class goliath::exceptions::OpenalError
* @brief All errors related to the audio module
*/
class OpenalError : public std::exception {
... |
P8P-7/core | src/controller/include/goliath/controller/repositories/command_status_repository.h | #pragma once
#include <string>
#include <repositories/CommandStatusRepository.pb.h>
#include <goliath/foundation/repositories/repository.h>
#include "../command_item.h"
/**
* @file command_status_repository.h
* @author Group 7 - Informatica
*/
namespace goliath::repositories {
class CommandStatusRepository ... |
P8P-7/core | src/controller/include/goliath/controller/commands/interrupt_command_command.h | <filename>src/controller/include/goliath/controller/commands/interrupt_command_command.h
#pragma once
#include "basic_command.h"
#include "../command_map.h"
/**
* @file interrupt_command_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
class InterruptCommandCommand : public BasicComm... |
P8P-7/core | src/modules/openal/include/goliath/openal.h | <reponame>P8P-7/core<filename>src/modules/openal/include/goliath/openal.h
#pragma once
/**
* @file openal.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::openal
* @brief OpenAL module to handle anything audio-related on the software side.
*/
#include "openal/util/openal_error.h"
#include "openal... |
P8P-7/core | src/modules/vision/include/goliath/vision.h | #pragma once
/**
* @file vision.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::vision
* @brief Module for all things vision-related
*/
#include "vision/detectors/color_region_detector.h"
#include "vision/detectors/cup_detector.h"
#include "vision/detectors/detector.h"
#include "vision/detectors... |
P8P-7/core | src/modules/i2c/include/goliath/i2c/handles/i2c_slave_handle.h | <reponame>P8P-7/core
#pragma once
#include <goliath/foundation.h>
/**
* @file i2c_slave_handle.h
* @author Group 7 - Informatica
*/
namespace goliath::i2c {
using I2cAddress = std::uint8_t;
}
namespace goliath::handles {
class I2cSlaveHandle : public Handle {
public:
I2cSlaveHandle(const siz... |
P8P-7/core | src/modules/vision/include/goliath/vision/detectors/follow_line_detector.h | <gh_stars>1-10
#pragma once
#include "detector.h"
/**
* @file follow_line_detector.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
/**
* @enum goliath::vision::FollowLineDirection
* @brief Represents a direction the robot should go in, outputted from the follow_line_detector.
*... |
P8P-7/core | src/controller/include/goliath/controller/commands/enter_command.h | <reponame>P8P-7/core<filename>src/controller/include/goliath/controller/commands/enter_command.h<gh_stars>1-10
#pragma once
#include <goliath/motor-controller.h>
#include "../handles.h"
#include "basic_command.h"
/**
* @file enter_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
cla... |
P8P-7/core | src/modules/vision/include/goliath/vision/processors/color_processor.h | <gh_stars>1-10
#pragma once
#include "processor.h"
/**
* @file color_processor.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
/**
* @class goliath::vision::ColorProcessor
* @brief Processor that returns an image with only colors within a specific range
*/
class ColorProces... |
P8P-7/core | src/modules/motor-controller/include/goliath/motor-controller/motor_controller.h | <reponame>P8P-7/core<filename>src/modules/motor-controller/include/goliath/motor-controller/motor_controller.h
#pragma once
#include <cstdint>
#include <goliath/i2c.h>
#include <vector>
namespace goliath::motor_controller {
using MotorId = std::uint8_t;
using MotorSpeed = std::uint8_t;
/**
* The phy... |
P8P-7/core | src/modules/vision/include/goliath/vision/webcam_handle.h | #pragma once
#include <goliath/foundation.h>
#include "webcam.h"
/**
* @file webcam_handle.h
* @author Group 7 - Informatica
*/
namespace goliath::handles {
/**
* @class goliath::handles::WebcamHandle
* @brief Handle that locks webcams, passes the device to be used as VideoCapture
*/
class... |
P8P-7/core | src/controller/include/goliath/controller/commands/synchronize_system_status_command.h | #pragma once
#include <thread>
#include "../handles.h"
#include "../repositories/system_status_repository.h"
#include "basic_command.h"
/**
* @file fan_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
class SynchronizeSystemStatusCommand : public BasicCommand {
public:
S... |
P8P-7/core | src/modules/i2c/include/goliath/i2c/i2c_slave.h | #pragma once
#include <string>
#include "handles/i2c_bus_handle.h"
#include "handles/i2c_slave_handle.h"
#include "i2c_error.h"
/**
* @file i2c_slave.h
* @author Group 7 - Informatica
*/
namespace goliath::i2c {
class I2cSlave {
public:
/**
* @brief Initializes an instance with a handle... |
P8P-7/core | src/controller/include/goliath/controller/commands/move_command.h | <gh_stars>1-10
#pragma once
#include "../handles.h"
#include "queue_command.h"
/**
* @file move_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
class MoveCommand : public QueueCommand {
public:
using MotorProto = proto::commands::MotorCommand::Motor;
/**
... |
P8P-7/core | src/modules/gpio/include/goliath/gpio/gpio.h | <gh_stars>1-10
#pragma once
#include <string>
/**
* @file gpio/gpio.h
* @author Group 7 - Informatica
*/
namespace goliath::gpio {
class GPIO {
public:
enum class MapPin {
GPIO2 = 2,
GPIO3 = 3,
GPIO4 = 4,
GPIO5 = 5,
GPIO6 = 6,
... |
P8P-7/core | src/modules/servo/include/goliath/servo/servo_mode.h | <filename>src/modules/servo/include/goliath/servo/servo_mode.h
#pragma once
namespace goliath::servo {
enum class ServoMode {
WHEEL,
JOINT
};
enum class Direction {
CLOCKWISE,
COUNTER_CLOCKWISE
};
} |
P8P-7/core | src/controller/include/goliath/controller/commands/set_wing_position_command.h | #pragma once
#include <goliath/servo.h>
#include "../handles.h"
#include "basic_command.h"
/**
* @file set_wing_position_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
class SetWingPositionCommand : public BasicCommand {
public:
explicit SetWingPositionCommand(const siz... |
P8P-7/core | src/modules/vision/include/goliath/vision/processors/processor.h | <reponame>P8P-7/core<filename>src/modules/vision/include/goliath/vision/processors/processor.h
#pragma once
#include <opencv2/opencv.hpp>
/**
* @file processor.h
* @author Group 7 - Informatica
*/
namespace goliath::vision {
/**
* @class goliath::vision::Processor
* @brief Base class of processors t... |
P8P-7/core | src/modules/openal/include/goliath/openal/context.h | #pragma once
#include "device.h"
/**
* @file context.h
* @author Group 7 - Informatica
*/
namespace goliath::openal {
/**
* @class goliath::openal::Context
* @brief Context to be passed to different devices
*/
class Context {
public:
/**
* @param device Device ... |
P8P-7/core | src/modules/servo/include/goliath/servo.h | #pragma once
/**
* @file gpio.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::servo
* @brief Contains all classes and function for interfacing a servo
*/
#include "servo/repositories/wing_state_repository.h"
#include "servo/repositories/wing_state.h"
#include "servo/wings/commandbuilder/wing_comm... |
P8P-7/core | src/modules/servo/include/goliath/servo/utilities.h | #pragma once
#include "servo_mode.h"
namespace goliath::servo {
class Utilities {
public:
static Direction flipDirection(Direction direction);
};
} |
P8P-7/core | src/modules/transitions/include/goliath/transitions/tickable.h | <reponame>P8P-7/core
#pragma once
#include <chrono>
/**
* @file tickable.h
* @author Group 7 - Informatica
*/
namespace goliath::transitions {
using Tick = std::uint32_t;
/**
* @class goliath::transitions::Tickable
* @brief Interface for defining whether a this transition can be executed or not... |
P8P-7/core | src/controller/include/goliath/controller/commands/synchronize_commands_command.h | <filename>src/controller/include/goliath/controller/commands/synchronize_commands_command.h
#pragma once
#include "basic_command.h"
#include "../repositories/command_status_repository.h"
/**
* @file synchronize_commands_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
class Synchroni... |
P8P-7/core | src/modules/servo/include/goliath/servo/wing_handle.h | #pragma once
#include <goliath/servo/servo_handle.h>
#include <goliath/servo/servo_mode.h>
namespace goliath::handles {
class WingHandle : public ServoHandle {
public:
WingHandle(const size_t &id,
const std::shared_ptr<dynamixel::Dynamixel> &device,
std::size_t ... |
P8P-7/core | src/controller/include/goliath/controller/repositories/config_repository.h | <filename>src/controller/include/goliath/controller/repositories/config_repository.h
#pragma once
#include <string>
#include <repositories/ConfigRepository.pb.h>
#include <goliath/foundation.h>
/**
* @file config_repository.h
* @author Group 7 - Informatica
*/
namespace goliath::repositories {
class ConfigRe... |
P8P-7/core | src/modules/emotions/include/goliath/emotions.h | <filename>src/modules/emotions/include/goliath/emotions.h<gh_stars>1-10
#pragma once
/**
* @file emotions.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::emotions
* @brief Contains utilities to send emotions to emotion display Raspberry Pi
*/
#include "emotions/emotion_handle.h"
#include "emotio... |
P8P-7/core | src/modules/openal/include/goliath/openal/microphone.h | <reponame>P8P-7/core
#pragma once
#include <chrono>
#include <AL/al.h>
#include <AL/alc.h>
#include "device.h"
/**
* @file microphone.h
* @author Group 7 - Informatica
*/
namespace goliath::openal {
class Microphone : public Device {
public:
Microphone(ALCuint frequency, ALCenum format, ALCsizei ... |
P8P-7/core | src/modules/gpio/include/goliath/gpio/gpio_handle.h | #pragma once
#include <goliath/foundation.h>
#include "gpio.h"
/**
* @file gpio_handle.h
* @author Group 7 - Informatica
*/
namespace goliath::handles {
/**
* @class goliath::handles::gpio_handle
* @brief Handle that locks GPIO pins
*/
class GPIOHandle : public Handle {
public:
... |
P8P-7/core | src/modules/servo/include/goliath/servo/repositories/wing_state.h | <reponame>P8P-7/core
#pragma once
#include <cstddef>
#include <cstdint>
#include "../servo_mode.h"
namespace goliath::servo {
class WingState {
public:
WingState() = default;
explicit WingState(const size_t &numberOfSectors);
WingState(const WingState &other);
void setWorldAng... |
P8P-7/core | src/controller/include/goliath/controller/commands/invalidate_all_command.h | <filename>src/controller/include/goliath/controller/commands/invalidate_all_command.h
#pragma once
#include "../watcher.h"
#include "../handles.h"
#include "basic_command.h"
/**
* @file invalidate_command.h
* @author Group 7 - Informatica
*/
namespace goliath::commands {
class InvalidateAllCommand : public Ba... |
P8P-7/core | src/modules/led-strip-controller/include/goliath/led-strip-controller.h | <filename>src/modules/led-strip-controller/include/goliath/led-strip-controller.h
#pragma once
#include "led-strip-controller/led_strip_controller.h"
|
P8P-7/core | src/modules/servo/include/goliath/servo/repositories/wing_state_repository.h | <gh_stars>1-10
#pragma once
#include <goliath/foundation.h>
#include <repositories/WingStateRepository.pb.h>
#include "wing_state.h"
#include "../servo_mode.h"
namespace goliath::repositories {
class WingStateRepository : public Repository {
public:
const size_t numberOfSectors = 4;
explicit ... |
P8P-7/core | src/controller/include/goliath/controller/handle_map.h | <filename>src/controller/include/goliath/controller/handle_map.h
#pragma once
#include <goliath/foundation.h>
/**
* @file handle_map.h
* @author Group 7 - Informatica
*/
namespace goliath::handles {
/**
* @class goliath::handles::HandleMap
* @brief Map of all handles mapped to an integer
*/
... |
P8P-7/core | src/modules/i2c/include/goliath/i2c.h | #pragma once
/**
* @file i2c.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::i2c
* @brief Contains I2C utilities for connecting the Pi with an Arduino
*/
#include "i2c/handles/i2c_slave_handle.h"
#include "i2c/handles/i2c_bus_handle.h"
#include "i2c/i2c_error.h"
#include "i2c/i2c_slave.h"
|
P8P-7/core | src/controller/include/goliath/controller/commands/command.h | #pragma once
#include <thread>
#include <mutex>
#include <condition_variable>
#include <CommandMessage.pb.h>
#include "../handle_map.h"
/**
* @file command.h
* @author Group 7 - Informatica
*/
/**
* @namespace goliath::commands
* @brief Contains all command and command utilities
*/
namespace goliath::command... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.