Skip to content

a Gazebo plugin that computes the force and torque between multiple magnets.

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
COPYING
Notifications You must be signed in to change notification settings

larics/storm_gazebo_ros_magnet

 
 

Repository files navigation

This is a Gazebo model plugin that uses the magnetic dipole-dipole model to compute the force and torque between multiple magnets. The plugin is enabled per model and looks for other models in the gazebo world that have the same plugin. It only simulates magnetic interactions between magnets (not other materials).

The plugin requires the bodyName tag specifying which link is the actual magnet and dipole_moment which is a vector specifying the dipole moment of said magnet.

Example:

  <plugin name="dipole_magnet" filename="libgazebo_dipole_magnet.so">
    <bodyName>magnet</bodyName>
    <dipole_moment>0 0 1.26</dipole_moment>
  </plugin>

The magnitude of dipole moment of a cylindrical magnet can be computed using the formula:

    dm_mag = B_max * 4*pi * (h/2)^3/(2*mu_0) 

Where B_max is the remanence of the magnet, h is the height and mu_0=4*pi*1e-7 is the permeability constant.

Building the plugin

The plugin is a ros package so the build process is the same as any other package.

$ cd ~/catkin_ws/src
$ git clone https://github.com/vustormlab/storm_gazebo_ros_magnet.git
$ catkin_make -C ~/catkin_ws

Running Example

To run the example in the worlds/ directory run

$ rosrun gazebo_ros gazebo dipole_magnet.world

Magnet simulation in Gazebo

References

If you use this work, please cite our RSS 2016 paper:

@INPROCEEDINGS{Taddese-RSS-16, 
    AUTHOR    = {Addisu Z. Taddese AND Piotr R. Slawinski AND Keith L. Obstein AND Pietro Valdastri}, 
    TITLE     = {Closed Loop Control of a Tethered Magnetic Capsule Endoscope}, 
    BOOKTITLE = {Proceedings of Robotics: Science and Systems}, 
    YEAR      = {2016}, 
    ADDRESS   = {AnnArbor, Michigan}, 
    MONTH     = {June}, 
    DOI       = {10.15607/RSS.2016.XII.018} 
} 

About

a Gazebo plugin that computes the force and torque between multiple magnets.

Resources

License

Unknown, Apache-2.0 licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
COPYING

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 95.8%
  • CMake 4.2%