Giter VIP home page Giter VIP logo

iqr_pan_tilt's Introduction

iqr_pan_tilt

IQR Camera pan_tilt driver

环境要求

  • Ubuntu 16.04
  • GCC 4.5以上
  • ROS Kinetic

安装与编译

更新软件

sudo apt-get update

安装依赖项

sudo apt-get install ros-kinetic-joy

创建ROS工作空间

mkdir -p ~/ros_ws/src
cd ~/ros_ws/src

克隆代码并编译

git clone https://github.com/I-Quotient-Robotics/iqr_pan_tilt.git
cd ..
catkin_make

环境设置

echo "source ~/ros_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

添加串口rules文件

roscd pan_tilt_bringup/config/
sudo cp ./56-pan-tilt.rules /etc/udev/rules.d/

注意:添加串口rules文件后,需要重新插拔USB线使之生效。

使用

首先,连接好云台的电源和USB通信端口。

1.普通模式

启动驱动节点

roslaunch pan_tilt_bringup panTilt_view.launch

发送位置消息

rostopic pub /pan_tilt_driver_node/pan_tilt_cmd pan_tilt_msg/PanTiltCmd "yaw: 30.0
pitch: 30.0
speed: 10" 

2.手柄控制模式

连接好手柄,然后启动驱动节点

roslaunch pan_tilt_bringup panTilt_view.launch use_joy:=true

使用手柄上的 X Y A B按键来控制云台的俯仰和旋转。

iqr_pan_tilt's People

Contributors

quartzyan avatar flymaxty avatar

Watchers

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