Coder Social home page Coder Social logo

ocean10k's Introduction

Ocean 10K

HitCount Build Status

Dependencies

This project depends on sai2 libraries. The install instructions can be found here.

Build Instructions

Create a build directory, then make by running:

mkdir build
cd build
cmake .. && make -j4

Changing Sai2Graphics Instructions

In Sai2Graphics.cpp, under

void Sai2Graphics::renderGraphicsWorld()

You will need to comment out the lines

setCameraPose(camera_name, camera_pos, camera_up_axis, camera_lookat_point);

and

render(camera_name);

Additionally, in Sai2Graphics.h, you will also need to move

void render(const std::string& camera_name);

from private to public.

Interfacing with Haptic Controllers

  1. Clone the chai3d wrapper:
git clone
https://github.com/manips-sai-org/chaiHapticdeviceRedisDriver.git
  1. Install all dependencies:
sudo apt-get install cmake redis redis-server libhiredis-dev libjsoncpp-dev
  1. From the source directory, create a build directory and make:
cd chaiHapticdeviceRedisDriver
mkdir build && cd build
cmake .. && make -j4
  1. Start the Redis server:
redis-server
  1. Plug in the haptic device to your device (e.g. laptop) and power it on.

  2. Calibrate the device. For example, for Falcon Novint, gently pull the controller out to its limit, press the HOME button, then release it.

  3. From chaiHapticdeviceRedisDriver/build, run:

sudo ./chai_devices_redis_driver

Running the Project

  1. Start Redis server (if not already running):
redis-server
  1. From the bin folder, navigate to the directory of the application to run:
cd bin/ocean1
  1. Run the simulation:
./simviz_ocean1
  1. From another terminal, run:
./controller_ocean1
  1. The haptic device should return to its HOMED state. Press the HOME button without disturbing its HOMED location. Once the button is pressed, you can start interacting with it normally.

  2. You can now interact with the environment!

screenshot

ocean10k's People

Contributors

tashakim avatar kameron-robinson-15 avatar courtoce avatar zohan638 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

ocean10k's Issues

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.