repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
CheranMahalingam/Distributed-Video-Processor
src/common/grpc_msg_defs.h
<gh_stars>0 #ifndef GRPC_MSG_DEFS #define GRPC_MSG_DEFS enum class RpcCommandID { UploadVideo, DownloadVideo, DeleteVideo, RequestVote, AppendEntries }; #endif
CheranMahalingam/Distributed-Video-Processor
src/raft/commit_channel.h
#ifndef COMMIT_CHANNEL_H #define COMMIT_CHANNEL_H #include <condition_variable> #include <queue> #include <mutex> #include <memory> #include "chunk_manager.h" #include "log.h" #include "raft.grpc.pb.h" namespace raft { class CommitChannel { public: CommitChannel(std::shared_ptr<file_system::ChunkManager> manage...
CheranMahalingam/Distributed-Video-Processor
src/orchestrator/request_cache.h
<reponame>CheranMahalingam/Distributed-Video-Processor<gh_stars>0 #ifndef REQUEST_CACHE_H #define REQUEST_CACHE_H namespace orchestrator { class RequestCache { }; } #endif
CheranMahalingam/Distributed-Video-Processor
src/orchestrator/orchestrator.h
#ifndef ORCHESTRATOR_H #define ORCHESTRATOR_H namespace orchestrator { class Orchestrator { }; } #endif
CheranMahalingam/Distributed-Video-Processor
src/raft/snapshot.h
#ifndef SNAPSHOT_H #define SNAPSHOT_H #include <string> #include <filesystem> #include <fstream> #include <tuple> #include <vector> #include <google/protobuf/io/zero_copy_stream.h> #include <google/protobuf/io/zero_copy_stream_impl.h> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/util/delimite...
CheranMahalingam/Distributed-Video-Processor
src/server/async_server.h
<filename>src/server/async_server.h #ifndef ASYNC_SERVER_H #define ASYNC_SERVER_H #include <grpc++/grpc++.h> #include "grpc_msg_defs.h" #include "concensus_module.h" #include "server.grpc.pb.h" using grpc::ServerCompletionQueue; using grpc::ServerContext; class AsyncServer { public: AsyncServer(); virtual ...
CheranMahalingam/Distributed-Video-Processor
src/file_system/chunk_manager.h
<filename>src/file_system/chunk_manager.h #ifndef CHUNK_MANAGER_H #define CHUNK_MANAGER_H #include <fstream> #include <filesystem> #include <memory> #include <string> #include <vector> #include <cmath> #include <google/protobuf/util/delimited_message_util.h> #include "lock_manager.h" #include "log.h" #include "raft.g...
zhuzhonghua/Episode
cppserver/Packet.h
#ifndef __FIGHTSERVER_PACKET_H__ #define __FIGHTSERVER_PACKET_H__ #include <string> class Packet { public: Packet(int opCode, std::string &buf) { m_opCode = opCode; m_strBuf = buf; } int getOP() { return m_opCode; } std::string* getData() { return &m_strBuf; } private: int m_...
zhuzhonghua/Episode
cppserver/Connection.h
<gh_stars>10-100 #ifndef __FIGHTSERVER_CONNECTION_H__ #define __FIGHTSERVER_CONNECTION_H__ #include <boost/asio.hpp> #include <boost/function.hpp> #include "Packet.h" using namespace boost::asio; using boost::asio::ip::tcp; class Connection; typedef boost::function<void (const boost::system::error_code& err...
zhuzhonghua/Episode
cppserver/App.h
#ifndef __FIGHTSERVER_APP_H__ #define __FIGHTSERVER_APP_H__ #include <boost/asio.hpp> #include "ServerConnection.h" class ConnectionManager; class App { public: static App* inst(); bool init(); void loop(); void exit(); public: ServerConnection* getFSMasterConn(); ConnectionManager* get...
zhuzhonghua/Episode
cppserver/MsgHandler.h
<filename>cppserver/MsgHandler.h<gh_stars>10-100 #ifndef __FIGHTSERVER_MSGHANDLER_H__ #define __FIGHTSERVER_MSGHANDLER_H__ #include <map> #include "Connection.h" class MsgHandler; class Packet; typedef bool (*MsgHandlerType)(Connection*, Packet* p); class MsgHandler { public: static void init(); ...
zhuzhonghua/Episode
cppserver/ConnectionManager.h
#ifndef __CONNECTIONMANAGER_H__ #define __CONNECTIONMANAGER_H__ #include <boost/asio.hpp> #include <list> #include "Packet.h" #include "Connection.h" using namespace boost::asio; class ConnectionManager { public: ConnectionManager(boost::asio::io_service& io_service, int port); ~ConnectionManager();...
zhuzhonghua/Episode
cppserver/Util.h
#ifndef __FIGHTSERVER_UTIL_H__ #define __FIGHTSERVER_UTIL_H__ #include <boost/date_time/gregorian/gregorian.hpp> #include "BaseDefine.h" typedef boost::posix_time::ptime PTime; class Util { public: static int getUnixTime(); static int64 getUnixMsTime(); static PTime getPTime(); // return milisec...
zhuzhonghua/Episode
cppserver/SimpleLog.h
#ifndef __FIGHTSERVER_SIMPLE_LOG_H__ #define __FIGHTSERVER_SIMPLE_LOG_H__ #include <iostream> #include <string> #include <sstream> #include <list> #include <boost/thread/mutex.hpp> #include <boost/thread/thread.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include "BaseDefine.h" class Sim...
zhuzhonghua/Episode
cppserver/StdAfx.h
<filename>cppserver/StdAfx.h #ifndef __FIGHTSERVER_STDAFX_H__ #define __FIGHTSERVER_STDAFX_H__ #include "SimpleLog.h" #include "Util.h" #define LOGNORMAL() ((SimpleLogNormal::get()->readyToLog())) #define LOGTEST() ((SimpleLogTest::get()->readyToLog())) #define LOGNET() ((SimpleLogNet::get()->readyToLog())...
jfjlaros/simpleREPL
src/simpleREPL.h
<reponame>jfjlaros/simpleREPL<filename>src/simpleREPL.h #ifndef SIMPLE_REPL_H_ #define SIMPLE_REPL_H_ /** * @file simpleREPL.h * * REPL interface. */ #include "interface.tcc" /// @private int _ping(int data) { return data; } /** * REPL interface. * * This function expects parameter pairs (function pointe...
isovic/daemon
src/daemon.h
/* * daemon.h * * Created on: Aug 30, 2014 * Author: ivan */ #ifndef DAEMON_H_ #define DAEMON_H_ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <iostream> #include <string> #include <sstream> #include <map> #include <list> #include <sys/select.h> #include <sys/types.h> #include <sys/st...
isovic/daemon
src/semaphore.h
/* * semaphore.h * * Created on: Oct 25, 2016 * Author: <NAME> (99%) and <NAME> (1%). */ #pragma once #include <stdint.h> #include <memory> #include <vector> #include <queue> #include <mutex> #include <thread> #include <future> #include <atomic> #include <condition_variable> #include <assert.h> class Sema...
siximuzhu/esp32-camera-ccc
key.c
<gh_stars>0 #include <stdio.h> #include <string.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #include "driver/gpio.h" #define KEY1 33 #define KEY2 32 #define KEY3 21 #define KEY4 8 #define FLASH_LED 22 typedef enum { KEY1_SHORT_PRESSED = 1, K...
siximuzhu/esp32-camera-ccc
http_demo.c
<reponame>siximuzhu/esp32-camera-ccc #include <string.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include "esp_system.h" #include "nvs_flash.h" #include "esp_event.h" #include "esp_netif.h" //#include "protocol_examples_common.h" #include "esp_tls.h" #include "...
siximuzhu/esp32-camera-ccc
examples/main/take_picture.c
/** * This example takes a picture every 5s and print its size on serial monitor. */ // =============================== SETUP ====================================== // 1. Board setup (Uncomment): // #define BOARD_WROVER_KIT // #define BOARD_ESP32CAM_AITHINKER /** * 2. Kconfig setup * * If you have a Kconfig fi...
vilhalmer/mako
include/config.h
<reponame>vilhalmer/mako #ifndef _MAKO_CONFIG_H #define _MAKO_CONFIG_H #include <stdbool.h> #include <stdint.h> struct mako_directional { int32_t top; int32_t right; int32_t bottom; int32_t left; }; enum mako_button_binding { MAKO_BUTTON_BINDING_NONE, MAKO_BUTTON_BINDING_DISMISS, MAKO_BUTTON_BINDING_DISMISS_A...
vilhalmer/mako
include/dbus.h
<reponame>vilhalmer/mako<gh_stars>1-10 #ifndef _MAKO_DBUS_H #define _MAKO_DBUS_H #include <stdbool.h> #include <systemd/sd-bus.h> struct mako_state; struct mako_notification; struct mako_action; enum mako_notification_close_reason; bool init_dbus(struct mako_state *state); void finish_dbus(struct mako_state *state);...
vilhalmer/mako
event-loop.c
#define _POSIX_C_SOURCE 199309L #include <assert.h> #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <sys/timerfd.h> #include <time.h> #include <unistd.h> #include "event-loop.h" void init_event_loop(struct mako_event_loop *loop, sd_bus *bus, struct wl_display *display) { loop->fds[MAKO_EVENT_DBU...
minigyima/YaLAIQt
ui_yalai.h
<gh_stars>0 /******************************************************************************** ** Form generated from reading UI file 'yalai.ui' ** ** Created by: Qt User Interface Compiler version 5.14.1 ** ** WARNING! All changes made in this file will be lost when recompiling UI file! ********************************...
minigyima/YaLAIQt
yalai.h
<reponame>minigyima/YaLAIQt #ifndef YALAI_H #define YALAI_H #include <QMainWindow> #include <QMessageBox> #include <QProcess> #include <QDateTime> #include <QFileSystemWatcher> #include <iostream> #include <stdio.h> #include <stdlib.h> #include <QFile> #include <QFileDialog> #include <QTextStream> #include <QDebug> Q...
trialley/TAOS
kernel/string.c
#include <types.h> // // #include <x86.h> void *memset(void *dst, int c, uint n) { if ((int)dst % 4 == 0 && n % 4 == 0) { c &= 0xFF; stosl(dst, (c << 24) | (c << 16) | (c << 8) | c, n / 4); } else stosb(dst, c, n); return dst; } int memcmp(const void *v1, const void *v2, uint n) { const uchar *s1, *s2; s1...
trialley/TAOS
kernel/net/common.c
// Copyright (c) 2012-2020 <NAME> // SPDX-License-Identifier: MIT #include <common.h> #include <defs.h> #include <types.h> // #define isascii(x) ((x >= 0x00) && (x <= 0x7f)) #define isprint(x) ((x >= 0x20) && (x <= 0x7e)) void hexdump(void *data, size_t size) { int offset, index; unsigned char *src; src = (unsig...
trialley/TAOS
include/socket.h
<filename>include/socket.h #include <sockio.h> #define PF_UNSPEC 0 #define PF_LOCAL 1 #define PF_INET 2 #define AF_UNSPEC PF_UNSPEC #define AF_LOCAL PF_LOCAL #define AF_INET PF_INET #define SOCK_STREAM 1 #define SOCK_DGRAM 2 #define IPPROTO_TCP 0 #define IPPROTO_UDP 0 #define INADDR_ANY ((ip_addr_t)0) struct sock...
trialley/TAOS
include/arp.h
#define ARP_RESOLVE_ERROR -1 #define ARP_RESOLVE_QUERY 0 #define ARP_RESOLVE_FOUND 1
trialley/TAOS
include/e1000_dev.h
// // E1000 hardware definitions: registers and DMA ring format. // from the Intel 82540EP/EM &c manual. // /* Registers */ #define E1000_CTL (0x0000) /* Device Control Register - RW */ #define E1000_EERD (0x0014) /* EEPROM Read - RW */ #define E1000_ICR (0x00C0) /* Interrupt Cause Read - R */ #define...
trialley/TAOS
include/icmp.h
#define ICMP_TYPE_ECHOREPLY 0 #define ICMP_TYPE_DEST_UNREACH 3 #define ICMP_TYPE_SOURCE_QUENCH 4 #define ICMP_TYPE_REDIRECT 5 #define ICMP_TYPE_ECHO 8 #define ICMP_TYPE_TIME_EXCEEDED 11 #define ICMP_TYPE_PARAM_PROBLEM 12 #define ICMP_TYPE_TIMESTAMP 13 #define ICMP_TYPE_TIMESTAMPREPLY 14 #define ICMP_TYPE_INFO_REQUEST 1...
trialley/TAOS
kernel/net/net.c
// Copyright (c) 2012-2020 <NAME> // SPDX-License-Identifier: MIT #include <defs.h> #include <ip.h> #include <net.h> #include <types.h> // struct netproto { struct netproto *next; uint16_t type; void (*handler)(uint8_t *packet, size_t plen, struct netdev *dev); }; static struct netdev *devices; static struct netp...
trialley/TAOS
include/types.h
#pragma once typedef unsigned int uint; typedef unsigned short ushort; typedef unsigned char uchar; typedef uint pde_t; #ifndef BUILD_MKFS /* copy form JOS */ /*- * Copyright (c) 1982, 1986, 1991, 1993 * The Regents of the University of California. All rights reserved. * (c) UNIX System Laboratories, Inc. ...
trialley/TAOS
kernel/net/icmp.c
// Copyright (c) 2012-2020 <NAME> // SPDX-License-Identifier: MIT #include <defs.h> #include <icmp.h> #include <ip.h> #include <net.h> #include <types.h> // struct icmp_hdr { uint8_t type; uint8_t code; uint16_t sum; union { struct { uint16_t id; uint16_t seq; } echo; ip_addr_t gateway; uint8_t ptr;...
trialley/TAOS
kernel/net/udp.c
// Copyright (c) 2012-2020 <NAME> // SPDX-License-Identifier: MIT #include <common.h> #include <defs.h> #include <ip.h> #include <net.h> #include <socket.h> #include <spinlock.h> #include <types.h> // #define UDP_CB_TABLE_SIZE 16 #define UDP_SOURCE_PORT_MIN 49152 #define UDP_SOURCE_PORT_MAX 65535 struct udp_hdr { u...
trialley/TAOS
include/common.h
#pragma once #include <types.h> // struct queue_entry { void *data; size_t size; struct queue_entry *next; }; struct queue_head { struct queue_entry *next; struct queue_entry *tail; unsigned int num; };
trialley/TAOS
include/ip.h
#pragma once #include <types.h> // #include <net.h> #define IP_HDR_SIZE_MIN 20 #define IP_HDR_SIZE_MAX 60 #define IP_PAYLOAD_SIZE_MAX (65535 - IP_HDR_SIZE_MIN) #define IP_ADDR_LEN 4 #define IP_ADDR_STR_LEN 16 /* "ddd.ddd.ddd.ddd\0" */ #define IP_PROTOCOL_ICMP 0x01 #define IP_PROTOCOL_TCP 0x06 #define IP_PROTOCOL_UDP...
trialley/TAOS
kernel/net/socket.c
// Copyright (c) 2012-2020 <NAME> // SPDX-License-Identifier: MIT #include <defs.h> #include <file.h> #include <fs.h> #include <ip.h> #include <net.h> #include <param.h> #include <sleeplock.h> #include <socket.h> #include <spinlock.h> #include <types.h> // struct socket { int type; int desc; }; struct file * socke...
trialley/TAOS
include/sockio.h
<filename>include/sockio.h #include <ioccom.h> #define SIOCGIFINDEX _IOWR('i', 0, struct ifreq) #define SIOCGIFNAME _IOWR('i', 1, struct ifreq) #define SIOCSIFNAME _IOW('i', 2, struct ifreq) #define SIOCGIFHWADDR _IOWR('i', 3, struct ifreq) #define SIOCSIFHWADDR _IOW('i', 4, struct ifreq) #define SIOCGIFFLAGS _IOWR('i...
trialley/TAOS
include/user.h
<reponame>trialley/TAOS struct stat; struct rtcdate; struct sockaddr; // system calls int fork(void); int exit(void) __attribute__((noreturn)); int wait(void); int pipe(int*); int write(int, const void*, int); int read(int, void*, int); int close(int); int kill(int); int exec(char*, char**); int open(const char*, int)...
trialley/TAOS
include/ethernet.h
#define ETHERNET_HDR_SIZE 14 #define ETHERNET_TRL_SIZE 4 #define ETHERNET_FRAME_SIZE_MIN 64 #define ETHERNET_FRAME_SIZE_MAX 1518 #define ETHERNET_PAYLOAD_SIZE_MIN (ETHERNET_FRAME_SIZE_MIN - (ETHERNET_HDR_SIZE + ETHERNET_TRL_SIZE)) #define ETHERNET_PAYLOAD_SIZE_MAX (ETHERNET_FRAME_SIZE_MAX - (ETHERNET_HDR_SIZE + ETHERNE...
trialley/TAOS
include/net.h
<reponame>trialley/TAOS #pragma once #define NETDEV_TYPE_ETHERNET (0x0001) #define NETDEV_TYPE_SLIP (0x0002) #include <if.h> #define NETDEV_FLAG_BROADCAST IFF_BROADCAST #define NETDEV_FLAG_MULTICAST IFF_MULTICAST #define NETDEV_FLAG_P2P IFF_POINTOPOINT #define NETDEV_FLAG_LOOPBACK IFF_LOOPBACK #define NETDEV_FLAG_NOA...
trialley/TAOS
include/defs.h
<reponame>trialley/TAOS #pragma once #include <types.h> // struct buf; struct context; struct file; struct inode; struct pipe; struct proc; struct rtcdate; struct spinlock; struct sleeplock; struct stat; struct superblock; // bio.c void binit(void); struct buf *bread(uint, uint); void brelse(struct buf *); void bwrit...
trialley/TAOS
userprog/ifconfig.c
#include <types.h> // #include <if.h> #include <socket.h> #include <stat.h> #include <user.h> static void display(const char *name) { struct ifreq ifr; int fd; char **s, *str[] = { "UP", "BROADCAST", "DEBUG", "LOOPBACK", "POINTOPOINT", "NOTRAILERS", "RUNNING", "NOARP"...
trialley/TAOS
include/if.h
/* $NetBSD: if.h,v 1.282 2020/02/14 22:04:12 thorpej Exp $ */ /*- * Copyright (c) 1999, 2000, 2001 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by <NAME> and <NAME>. * * Redistribution and use in source and binary forms, with or...
trialley/TAOS
kernel/device/e1000.c
<filename>kernel/device/e1000.c // Copyright (c) 2012-2020 <NAME> // SPDX-License-Identifier: MIT #include <defs.h> #include <e1000_dev.h> #include <memlayout.h> #include <mmu.h> #include <net.h> #include <param.h> #include <pci.h> #include <proc.h> #include <types.h> // #define RX_RING_SIZE 16 #define TX_RING_SIZE 1...
trialley/TAOS
kernel/net/syssocket.c
<reponame>trialley/TAOS // Copyright (c) 2012-2020 <NAME> // SPDX-License-Identifier: MIT #include <defs.h> #include <file.h> #include <fs.h> #include <param.h> #include <sleeplock.h> #include <spinlock.h> #include <types.h> // int sys_socket(void) { int fd, domain, type, protocol; struct file *f; if (argint(0, &...
trialley/TAOS
kernel/picirq.c
<reponame>trialley/TAOS<gh_stars>0 // #include <traps.h> // #include <types.h> // // #include <x86.h> // I/O Addresses of the two programmable interrupt controllers #define IO_PIC1 0x20 // Master (IRQs 0-7) #define IO_PIC2 0xA0 // Slave (IRQs 8-15) // Don't use the 8259A interrupt controllers. Xv6 assumes SMP har...
BCLab-UNM/Swarmathon-CSUCI-Public
src/mobility/src/SearchController.h
#ifndef SEARCH_CONTROLLER #define SEARCH_CONTROLLER #include <geometry_msgs/Pose2D.h> #include <random_numbers/random_numbers.h> #include <string> #include <stack> // std::stack /** * This class implements the search control algorithm for the rovers. The code * here should be modified and enhanced to impro...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/Result.h
<gh_stars>1-10 // Defines the Result type which used to standardize the information that // can be returned by a controller object. /* EXAMPLE: * * This struct returns the neccesary commands to logic controller for the current controller to control the robot * * struct Result res; * res.type = ...; * res.b = .....
BCLab-UNM/Swarmathon-CSUCI-Public
src/mobility/src/DropOffController.h
<filename>src/mobility/src/DropOffController.h<gh_stars>1-10 #ifndef DROPOFCONTROLLER_H #define DROPOFCONTROLLER_H #define HEADERFILE_H #include <geometry_msgs/Pose2D.h> #include <std_msgs/Float32.h> struct DropOffResult { float cmdVel; float angleError; float fingerAngle; float wristAngle; bool g...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/Controller.h
#ifndef CONTROLLER_H #define CONTROLLER_H #include "Result.h" enum ControllerName { NO_STATE = 0, SEARCH, PICK_UP, DROP_OFF, OBSTACLE, MANUAL, RANGE }; /* * This class is meant to serve as a template for all Controllers, * including new Controllers defined by each team. * * It also e...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/ObstacleController.h
#ifndef OBSTACLECONTOLLER_H #define OBSTACLECONTOLLER_H #include "Controller.h" #include "Tag.h" #include "ObstacleAssistant.h" #include "Utilities.h" #define _USE_MATH_DEFINES #include <map> #include <cstdlib> #include <cmath> #include <random> #include <random_numbers/random_numbers.h> /* * Sonar has the most accu...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/DropOffController.h
#ifndef DROPOFCONTROLLER_H #define DROPOFCONTROLLER_H #define HEADERFILE_H #include "Controller.h" #include "Tag.h" #include "Utilities.h" #include <math.h> #include <ros/ros.h> #include <std_msgs/String.h> #include <tf/transform_datatypes.h> #include <tf/transform_listener.h> extern void logMessage(long int currentT...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/Pose.h
#ifndef POSE_H #define POSE_H struct pose{ float x; float y; float theta; }; #endif // POSE_H
BCLab-UNM/Swarmathon-CSUCI-Public
src/mobility/src/PIDController.h
<gh_stars>1-10 #ifndef PIDCONTROLLER_H #define PIDCONTROLLER_H #include <geometry_msgs/Pose2D.h> /** * This class implements a PID controller for the rovers. The code * here should not be modified. */ class PIDController { public: PIDController(); float calculateTranslationalVelocity(geometry_msgs::Pose2...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/PickUpController.h
<reponame>BCLab-UNM/Swarmathon-CSUCI-Public #ifndef PICKUPCONTROLLER_H #define PICKUPCONTROLLER_H #include "Controller.h" #include "Tag.h" #include <std_msgs/String.h> #include <ros/ros.h> #include "Utilities.h" #define IGNORE_TAGS 10 extern void logMessage(long int currentTime, string component, string message); e...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/ObstacleAssistant.h
<reponame>BCLab-UNM/Swarmathon-CSUCI-Public // // Created by student on 2/7/18. // #ifndef PROJECT_OBSTACLEASSISTANT_H #define PROJECT_OBSTACLEASSISTANT_H #define START_STAG 2 #define DEFAULT_RANGE 10 /* * Type of declared obstacle */ typedef enum { NO_OBSTACLE = 0, OBS_LEFT, OBS_CENTER, OBS_RIGHT...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/ManualWaypointController.h
#ifndef MAUNALWAYPOINTCONTROLLER_H #define MANULAWAYPOINTCONTROLLER_H #include <map> #include "Controller.h" class ManualWaypointController : virtual Controller { public: ManualWaypointController(); ~ManualWaypointController(); // Clears the list of waypoints to visit. // NOTE: this will not st...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/Utilities.h
//<NAME> #ifndef UTILITIES #define UTILITIES #include "Point.h" float distance_between_points(Point, Point); float angle_between_points(Point, Point); float difference_between_angles(Point, Point); int saturation_check(int, int); float infinity_norm(Point); Point GetLastCubeLocation(); void SetLastCubeLocation...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/LogicAssistant.h
// // Created by student on 3/14/18. // #include "Controller.h" #ifndef PROJECT_LOGICASSISTANT_H #define PROJECT_LOGICASSISTANT_H class LogicAssistant { private: ControllerName prev_state; ControllerName curr_state; bool cube_held; bool cube_seen; bool home_seen; OBS_TYPE detection; public: ...
BCLab-UNM/Swarmathon-CSUCI-Public
src/behaviours/src/SearchController.h
<reponame>BCLab-UNM/Swarmathon-CSUCI-Public #ifndef SEARCH_CONTROLLER #define SEARCH_CONTROLLER #include <random_numbers/random_numbers.h> #include "Controller.h" #include "Utilities.h" /** * This class implements the search control algorithm for the rovers. The code * here should be modified and enhanced to improv...
tianhai123/adaboost-c-
readSampleDataFile.h
<reponame>tianhai123/adaboost-c- #include <string> #include <vector> void readSampleDataFile(const std::string sampleDataFilename, std::vector< std::vector<double> >& sampleFeatures, std::vector<bool>& sampleLabels);
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_op_set_channel.c
/******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (License). Unle...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_op_swap_channels.c
/******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (License). Unle...
iamike/HyperLPR
Prj-Linux/opencv-release/modules/python_bindings_generator/pyopencv_generated_include.h
#include "opencv2/core.hpp" #include "opencv2/core/async.hpp" #include "opencv2/core/base.hpp" #include "opencv2/core/bindings_utils.hpp" #include "opencv2/core/check.hpp" #include "opencv2/core/cuda.hpp" #include "opencv2/core/mat.hpp" #include "opencv2/core/ocl.hpp" #include "opencv2/core/opengl.hpp" #include "opencv...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/include/iw/iw.h
/******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (License). Unle...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/icv/include/ippicv_l.h
<gh_stars>0 /* // Copyright 2014-2019 Intel Corporation All Rights Reserved. // // The source code, information and material ("Material") contained herein is // owned by Intel Corporation or its suppliers or licensors, and title // to such Material remains with Intel Corporation or its suppliers or // licensors. The Ma...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_color_convert_rgbs.c
<reponame>iamike/HyperLPR /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provid...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_filter_laplacian.c
/******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (License). Unle...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/include/iw/iw_ll.h
<gh_stars>0 /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (Lic...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_op_copy_split.c
<reponame>iamike/HyperLPR /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provid...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_op_copy_channel.c
/******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (License). Unle...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_filter_bilateral.c
<gh_stars>0 /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (Lic...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/include/iw/iw_image.h
/******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (License). Unle...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/include/iw/iw_version.h
<reponame>iamike/HyperLPR /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provid...
iamike/HyperLPR
Prj-Linux/opencv-release/modules/python_bindings_generator/pyopencv_generated_types.h
<gh_stars>0 CVPY_TYPE(Algorithm, Ptr<cv::Algorithm>, Ptr, NoBase, 0); CVPY_TYPE(AsyncArray, Ptr<cv::AsyncArray>, Ptr, NoBase, pyopencv_cv_AsyncArray_AsyncArray); CVPY_TYPE(ocl_Device, cv::ocl::Device, Device, NoBase, pyopencv_cv_ocl_ocl_Device_Device); CVPY_TYPE(FileStorage, Ptr<cv::FileStorage>, Ptr, NoBase, pyopencv_...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_transform_rotate.c
/******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (License). Unle...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_filter_sobel.c
<gh_stars>0 /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (Lic...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/include/iw_config.h
<reponame>iamike/HyperLPR /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provid...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/include/iw_own.h
<gh_stars>0 /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provided to you (Lic...
iamike/HyperLPR
Prj-Linux/opencv-release/modules/python_bindings_generator/pyopencv_generated_modules.h
<filename>Prj-Linux/opencv-release/modules/python_bindings_generator/pyopencv_generated_modules.h CVPY_MODULE("", cv); CVPY_MODULE(".Error", Error); CVPY_MODULE(".cuda", cuda); CVPY_MODULE(".detail", detail); CVPY_MODULE(".dnn", dnn); CVPY_MODULE(".fisheye", fisheye); CVPY_MODULE(".flann", flann); CVPY_MODULE(".ipp", i...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_image_op_copy_merge.c
<reponame>iamike/HyperLPR /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provid...
iamike/HyperLPR
Prj-Linux/opencv-release/3rdparty/ippicv/ippicv_lnx/iw/src/iw_own.c
<reponame>iamike/HyperLPR /******************************************************************************* * Copyright 2016-2019 Intel Corporation. * * This software and the related documents are Intel copyrighted materials, and * your use of them is governed by the express license under which they were * provid...
iamike/HyperLPR
Prj-Linux/opencv-release/modules/python_bindings_generator/pyopencv_generated_funcs.h
static PyObject* pyopencv_cv_AKAZE_create(PyObject* , PyObject* args, PyObject* kw) { using namespace cv; PyObject* pyobj_descriptor_type = NULL; int descriptor_type=AKAZE::DESCRIPTOR_MLDB; PyObject* pyobj_descriptor_size = NULL; int descriptor_size=0; PyObject* pyobj_descriptor_channels = NULL...
iamike/HyperLPR
Prj-Linux/opencv-release/modules/python_bindings_generator/pyopencv_custom_headers.h
<gh_stars>0 //user-defined headers #include "/code/Prj-Linux/opencv-3.4.11/modules/core/misc/python/pyopencv_async.hpp" #include "/code/Prj-Linux/opencv-3.4.11/modules/core/misc/python/pyopencv_umat.hpp" #include "/code/Prj-Linux/opencv-3.4.11/modules/flann/misc/python/pyopencv_flann.hpp" #include "/code/Prj-Linux/open...
marcelo-paredes/pwm-player
src/Notes.h
#pragma once #include <string> #include <map> #include "math.h" namespace picoPwm { /** * Enumerates the types of chromatic scales to handle */ typedef enum { /// Equal temperament equal, /// Pythagorean (based on the fifth interval being 3/2) pythagorean, /...
marcelo-paredes/pwm-player
src/PWM.h
<gh_stars>0 #pragma once #include "pico/stdio.h" #include "pico/stdio.h" #include "hardware/pwm.h" #include "hardware/gpio.h" #include "hardware/clocks.h" using namespace std; namespace picoPwm { class PWM { private: uint pin = 0; uint16_t slice= 0; uint8_t channel = 0; uint32_t to...
marcelo-paredes/pwm-player
src/PWMPlayer.h
#pragma once #include "PWM.h" #include "Notes.h" #include <list> #include <string> namespace picoPwm { /** * Provides a simple representation of a note event for purposes * of playing. */ class NoteEvent { public: /** * Constructs a NoteEvent * @pa...
abhiyadav1323/SQL_Compiler
ass2.h
<reponame>abhiyadav1323/SQL_Compiler #define OR 1 #define AND 2 #define NOT 3 #define ADD 4 #define ALL 5 #define ALTER 6 #define BETWEEN 7 #define BY 8 #define CHAR 9 #define COLUMN 10 #define CREATE 11 #define DECIMAL 12 #define DELETE 13 #define DISTINCT 14 #define DOUBLE 15 #define DROP 16 #define FOREIGN 17 #defin...
gofeel/Yet-Another-UART-to-Switch
Joystick.c
/* Nintendo Switch Fightstick - Proof-of-Concept Based on the LUFA library's Low-Level Joystick Demo (C) Dean Camera Based on the HORI's Pokken Tournament Pro Pad design (C) HORI This project implements a modified version of HORI's Pokken Tournament Pro Pad USB descriptors to allow for the creation of custom contro...
umm-csci-3403-fall-2020/lab-3-jon_matthew
mergesort/mergesort.c
#include "mergesort.h" #include <stdlib.h> bool needsSorting(int rangeSize) { if (rangeSize >= 2) { return true; } else { return false; } } void mergeRanges(int* toSort, int size, int startIndex, int midPoint, int endIndex) { int rangeSize = endIndex - startIndex; int* destination...
umm-csci-3403-fall-2020/lab-3-jon_matthew
array_merge/array_merge.c
#include "array_merge.h" #include <stdlib.h> #include "../mergesort/mergesort.h" #include "../mergesort/mergesort.c" bool isIn(int value, int* array) { for (int i = 1; i < (array[0] + 1); i++) { if (array[i] == value) { return true; } } return false; } int* getUniques(int maSize, int* messyArray) { int caS...
clevijoki/vapid
source/GeneratedCommon.h
#pragma once /* This file is generated from generated_overloaded.py, do not edit directly */ namespace common { enum class ApiTag : uint8_t { CreateFileA, CreateFileW, CloseHandle, ReadFile, ReadFileEx, WriteFile, WriteFileEx, GetFileSize, GetFileSizeEx, SetFilePointerEx, SetFilePointer, ...
clevijoki/vapid
source/BufOps.h
<reponame>clevijoki/vapid<gh_stars>0 #pragma once namespace bufops { inline void ReadBuffer(char*& buf, void *data, size_t size) { memcpy(data, buf, size); buf += size; } inline void WriteBuffer(char*& buf, const void *data, size_t size) { memcpy(buf, data, size); buf += size; } template<size_t SIZ...
clevijoki/vapid
source/AtScopeExit.h
#pragma once template<typename T> struct AtScopeExiter { T exit_func; AtScopeExiter(T t) : exit_func(std::move(t)) {} ~AtScopeExiter() { exit_func(); } }; #define AT_SCOPE_EXIT_NAME2(a, b) a##b #define AT_SCOPE_EXIT_NAME(a, b) AT_SCOPE_EXIT_NAME2(a, b) #define AT_SCOPE_EXIT(func) \ auto AT_SCOPE_EXIT_NAME(scop...
clevijoki/vapid
source/WindowsInclude.h
<reponame>clevijoki/vapid #pragma once //#define WIN32_LEAN_AND_MEAN #include <winsock2.h> #include <Ws2tcpip.h> #include <Windows.h> #include <string> inline std::string Win32ErrorToString(int ErrorCode) { static CHAR Message[1024]; // If this program was multithreaded, we'd want to use // FORMAT_MES...
clevijoki/vapid
source/Assert.h
#pragma once #include <stdio.h> #include <stdarg.h> #include <string> #include "DebugLog.h" inline void AssertFunc(const char* expr) { DebugLog("ASSERT: %s", expr); } inline void AssertFunc(const char* expr, const char* fmt, ...) { va_list args; va_start(args, fmt); char tmp[2048]; vsnprintf_s(tmp, sizeof(tmp)...
clevijoki/vapid
source/MutexProtectedResource.h
#pragma once #include "Assert.h" template<typename T> inline void DefaultMutexProtectedResourceDeleter(T& res) { res.~T(); } BOOL MutexProtectedResourceCloseHandle(HANDLE); enum ENoInit { NoInit }; template<typename T, void DELETER(T&)=DefaultMutexProtectedResourceDeleter> class MutexProtectedResource { union { T...