Giter Site home page Giter Site logo

net-ft-ros's Introduction

net-ft-ros

Build Status

ROS package for the ATI 6-axis force torque sensor.

Hardware setup

TODO: description of the ATI setup, with ATI box, how to connect to ethernet and ping the box.

Once you have connected the ATI box with an ethernet and power supply cable, check the network connection. From your PC try and ping the FT sensor.

$ ping 128.178.145.98

If you can ping the FT sensor then you are ready to use it. You can also put the ip into your web-brower and (if you could ping it) you should be able to see a webpage which shows the status of the FT. Normaly the status should be: Healthy.

Launch

$ roslaunch netft_rdt_driver ft_sensor.launch 

The force-torque information will be published on the topic: /ft_sensor/netft_data. The message type is geometry_msgs/WrenchStamped.

rostopic echo /ft_sensor/netft_data


header: 
  seq: 9377
  stamp: 
    secs: 1454162697
    nsecs: 667636236
  frame_id: ''
wrench: 
  force: 
    x: -0.248077
    y: -1.12601
    z: -1.639932
  torque: 
    x: -0.106468
    y: -0.108128
    z: 0.22924

There are four arguments the node takes, see the launch file for more details.

  • ROS service
 rosservice call /ft_sensor/bias_cmd "cmd: 'bias'"

To call the service in C++ code make sure to include the service message type:

#include "netft_rdt_driver/String_cmd.h"
...
ros::ServiceClient ft_client = nh.serviceClient<netft_rdt_driver::String_cmd>("/ft_sensor/bias_cmd");
netft_rdt_driver::String_cmd srv;
srv.request.cmd  = "bias";
srv.response.res = "";
f (ft_client.call(srv))
{
  ROS_INFO_STREAM("net_ft res: " << srv.response.res);
}else{
  ROS_ERROR("Failed to call netft bias service");
}
  • rqt_plot You can visualise the force-torque sensor topic with the rqt perspective. In the launch file run the script rqt script:
./launch_rqt.sh
  • Rviz Add a Wrench message type in Rviz and make sure it is subscribing to the appropriate ros message, namely /ft_sensor/netft_data

net-ft-ros's People

Contributors

gpldecha avatar jrmout avatar felixduvallet avatar feroze avatar

Watchers

 avatar 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.