Coder Social home page Coder Social logo

omni_im's Introduction

omni_im

Interactive Marker (IM) Server integrated with the Phantom Omni

This package provides a backend for the interaction_cursor_rviz package, allowing you to control the 3D cursor using the Phantom Omni. Download the omni_im_demo package as well, and simply:

roslaunch omni_im_demo omni_im_demo

Then add the InteractionCursor display to rviz.

To see it in action on an actual robot, you can also download the pr2_dane package.

Parameters:

  • /omni_im/topic_name (default null): The base topic name for the interactive markers you wish to control with the omni
  • /omni_im/fixed_frame (default '/world'): A fixed 'world' frame.
  • /omni_im/control_frame (default '/world'): A frame that determines the 'perspective' for the omni controls. It should roughly match the camera's position in Rviz.
  • /omni_im/control_offset (default PI): The z-rotation for the Phantom omni control frame. Usually PI if your control frame roughly matches the camera frame.
  • /omni_im/marker_offset (default 0): If the marker and controls aren't actually centered in the marker frame, use this offset to adjust the z-position of the interaction cursor.

Behind the scenes (although visible if you look at the TFs), you'll see that this works by storing reference positions for the marker and stylus whenever you switch to omni control mode. While in omni control, the transform between the stylus reference and actual position is applied to the marker reference position to get the desired marker pose, which is published to the interactive marker feedback topic.

omni_im's People

Contributors

danepowell avatar

Stargazers

 avatar Dmitriy avatar

Watchers

James Cloos avatar  avatar  avatar

omni_im's Issues

Eliminate marker_offset parameter

The problem is that the controls for markers aren't always centered on the actual marker position. The marker feedback topic only provides marker position, so if the controls are too far away, we won't be able to 'grab' them.

To get rid of this parameter, we'd need to capture server state (via the update topic), find the marker corresponding to that in the feedback topic, find the best candidate control (MOVE_ROTATE_3D), and then set the marker position to this control position. Ugh.

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.