Giter Club home page Giter Club logo

cbear-bruce's Introduction

Project Status: Active โ€“ The project has reached a stable, usable state and is being actively developed. Build Status license

CBEAR

CBEAR is a C++ SDK to communicate with the BEAR actuators developed in RoMeLa.

Author

Name: Min Sung Ahn Email: [email protected]

Notes

It is advised to use the Boosted USB-to-RS485 device for maximum speed. Use at own risk.

Installation Procedures

  1. Modify the permissions of your computer such that CBEAR can access the serial port.
sudo chown -R your_username /usr/local
sudo usermod -a -G dialout your_username
  1. Download the code.
git clone https://github.com/RoMeLaUCLA/CBEAR.git
  1. Include the project into your code.

Example

#include "bear_sdk.h"
#include "bear_macro.h"

// initialize BEAR instance
bear::BEAR bear_handle = bear::BEAR("/dev/ttyUSB0", 8000000);

// get present position
float ret_val{0.0};
ret_val = bear_handle.GetPresentPosition(1);

// bulk read/write
std::vector<uint8_t> mIDs{1,2};
std::vector<uint8_t> write_add{bear_macro::GOAL_VELOCITY, bear_macro::GOAL_POSITION};
std::vector<uint8_t> read_add{bear_macro::PRESENT_POSITION, bear_macro::PRESENT_VELOCITY};
std::vector<std::vector<float>> data{{0.0, 0.0}, {0.0, 0.0}};
std::vector<std::vector<float>> ret_vec_rw;
ret_vec_rw = bear_handle.BulkReadWrite(mIDs, read_add, write_add, data);

cbear-bruce's People

Contributors

aminsung 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.