Skip to content

OTL/uarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

uarm ros package

ROS tools for UArm by UFactory.

Dependency

  • rosserial
  • UF_uArm (arduino library)

Install

  1. Install arduino sdk from Arduino.cc[http://arduino.cc/en/Main/Software].

  2. Install rosserial

    $ sudo apt-get install ros-hydro-rosserial
  1. checkout uarm(this!) and build
    $ cd ~/catkin_ws/src
    $ git clone https://github.com/OTL/uarm.git
    $ cd ~/catkin_ws
    $ catkin_make
  1. generate ros_lib (ros message file for arduino)
    $ rosrun rosserial_arduino make_libraries.py ~/sketchbook/libraries
  1. install UF_uArm arduino library
    $ cd  ~/sketchbook/libraries
    $ git clone https://github.com/UFactory/UF_uArm.git
  1. make a link to the sketch directory
    $ ln -s ~/catkin_ws/src/uarm/uArmROS ~/sketchbook/
  1. Start Arduino SDK, and install sketch, uArmROS

File -> Sketchbook -> uArmROS

Run

    $ rosrun rosserial_python serial_node.py
    $ rostopic list

Pub/Sub

Publish

  • /uarm/button/d4 (std_msgs/Bool): button state (D4)
  • /uarm/button/d7 (std_msgs/Bool): button state (D7)
  • /uarm/joint_states (sensor_msgs/JointState): TODO: raw joint AD value

Subscribe

  • /uarm/joint_commands (uarm/Joints): move joints (unit looks [deg] and [mm])
  • /uarm/gripper (std_msgs/Bool): true -> hold, false -> release (only tested for pump)

About

ROS tools for UArm by UFactory

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%