Git Product home page Git Product logo

joystick's Introduction

Joystick Remote Control in ROS

This package is for joystick remote control in ROS, it subscribes the joystick information from topic "/joy" and publish the velocity command on the topic "/mobile_base/commands/velocity". We using logitech joystick and other standard joysticks are also OK.

Prerequisite

Hardware: logitech joystick or other standard joysticks

environment: Ubuntu 16.04, ROS Kinetic

  • download this package and copy it to the src directory of your catkin workspace. then catkin_make and source devel/setup.bash
  • sudo apt install ros-kinetic-joy

How to run?

rosrun joy joy_node

rosrun joystick joystick

How to use?

注意遥控器的模式(mode), 否则会导致错乱。

开关量控制

  • 飞盘转动:长按'LB', 再按'X'
  • 飞盘停止:长按'LB', 再按'B'
  • 球框上升:长按'LB', 再按'Y'
  • 球框下降:长按'LB', 再按'A'
  • 球框停止:长按'LB', 再按'RB'

底盘运动控制

  • 高速按键控制模式:长按'Y',用方向按键来控制机器人
  • 低速按键控制模式:长按'A',用方向按键来控制机器人
  • 高速摇杆控制模式:长按'X',用左摇杆来控制机器人
  • 低速摇杆控制模式:长按'B',用左摇杆来控制机器人

Tips

  • 检查手柄的连接, ls /dev/input/;查看是否有js0,有则说明已经连接上了
  • 测试手柄信号,sudo jstest /dev/input/js0

joystick's People

Contributors

huangjianxjtu avatar

Watchers

James Cloos 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.