GithubHelp home page GithubHelp logo

personalrobotics / hebi-cpp-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hebirobotics/hebi-cpp-examples

0.0 4.0 0.0 78 KB

Examples for the HEBI Robotics C++ API

Home Page: http://docs.hebi.us

License: Apache License 2.0

C++ 88.07% CMake 9.99% Python 1.94%

hebi-cpp-examples's Introduction

Hebi C++ Examples

This repo contains examples for the HEBI Robotics C++ API.

Note that many of these programs contains hardcoded module family/name values, and these values should be modified to match the modules available on your network.

Downloading Dependencies

If cloning the repo directly, you will need to download the C++ API to build the examples. Running python scripts/download_depends.py will download and extract the API and associated binaries.

If you have downloaded a tagged release, this step is unnecessary.

Getting Started

The 'projects' folder contains sample project files for different IDEs/build systems.

Currently, the only supported build systems are CMake and Visual Studio (Makefile and XCode support will be added soon).

Visual Studio

Open the projects/visual_studio/basic_examples.sln file in Visual Studio. VS 2017 has been tested, but earlier versions are expected to work as well. (Note that a VS project for the advanced examples is coming soon!)

To run an example:

  • Right click on the desired example project in the solution explorer, and click "Set as StartUp Project",
  • Select the desired configuration (Debug/Release and x64/Win32) from the top toolbar.
  • Click the run button (green triangle, beside the configuration selection buttons) to run the program.

Note that as these are console applications with no pause at the end, you may wish to add a breakpoint before the program returns to have a chance to inspect the console output.

CMake

To get started with CMake, you must first install CMake. After doing so, you can run cmake to create the project files for your desired platform. For example, on 64 bit Linux, from the root directory, you can run

mkdir build
cd build
cmake -DARCH=x86_64 ../projects/cmake/

If CMake is configured to create a Makefile project (the default for Linux), you can then run make to compile the examples.

Directory Layout

  • hebi The C++ API and C binaries are stored in this directory (if cloning the repo directly, note that this directory is created by the download depends script.
  • basic A set of numbered basic examples that walk through the core concepts of the API. This code is the best place to start if you are new (note that to easily build the examples, use the project files in projects.
  • advanced A set of more involved examples that go through various topics.
  • projects The directory where IDE and build system files are found.
  • scripts Helper scripts for downloading the API and releasing the example package; this directory only exists in the directly cloned repo.

hebi-cpp-examples's People

Contributors

iamtesch avatar rlinks234 avatar

Watchers

Michael Koval avatar Jeongseok (JS) Lee avatar Siddhartha Srinivasa avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.