Git Product home page Git Product logo

iosfl's Introduction

iosfl

iosfl is a ROS package which implements the Input/Output State Feedback Linearization for a differential drive mobile robot (for reference, see http://www.dis.uniroma1.it/~labrob/pub/papers/CST02.pdf).

  1. Installation:

    cd path_to_your_catkin_workspace/src
    git clone https://github.com/Chaos84/iosfl.git
  2. Compile:

    cd path_to_your_catkin_workspace
    catkin_make
  3. Run:

    roscore
    open another tab
    rosrun iosfl iosfl_node
  4. Documentation:

    Generate the documentation by running

    roscd iosfl
    rosdoc_lite . -o ./doc

By default, the node subscribes to the topic "/speed" and publishes the topic "/cmd_vel". Both topics are geometry_msgs/Twist type. The un-constrained desired speeds should be put in the fields var_name.linear.x and var_name.linear.y on the topic speed. The published topic has the linear speed in pub_msg.linear.x and the angular speed in pub_msg.angular.y . By default, the lead the robot is contrained to has length equal to 0.1m, the maximum speed (per wheel) is 0.5m/s and the axle of the robot is 0.33m. You can change these parameters, for example, by running the node with a launch file:

```xml
<!-- iosfl Launch File -->
<launch>
	<node pkg="iosfl" name="iosfl_node" type="iosfl_node">
		<param name="iosfl_lead" value="0.1" type="double"/>
		<param name="axle" value="0.33" type="double"/>
		<param name="maximum_speed" value="0.5" type="double"/>			
	</node>
</launch>
```

In order to obtain the yaw angle, the node computes the transformation between the frame "/map" and the frame "/base_link", so be sure to publish them correctly.

============ There is also a static method to saturate the robot speed, which can be used without creating an instance of the class iosfl. You can do it by adding the dependencies to the package "iosfl" in your package.xml and CMakeLists.txt files or by adding the dependency when you create your package i.e.:

```bash
cd path_to_your_catkin_workspace
catkin_create_pkg your_package_name roscpp iosfl all_your_other_dependencies
```

THANKS!

Please let me know if something doesnt work, or if you have suggestions (or feel free to add stuff and send a pull request).

iosfl's People

Contributors

chaos84 avatar

Watchers

 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.