Git Product home page Git Product logo

barrett_wam_gazebo_sim's Introduction

barrett_wam_gazebo_sim

Cloning

Since this repo contains a submodule, barrett_model, you must clone using the following command (as described in the git documentation)

git clone --recurse-submodules https://github.com/saszaz/barrett_wam_gazebo_sim

To change to the project-relevant branch for this repo:

cd barrett_model
git checkout --track origin/my_devel

Running the code

Launch the gazebo interface

The barrett_wam.launch file will start the Gazebo simulator, load the urdf model, and start the controller interfaces. The ctrl_mode argument can be set to position (default), velocity, or effort. The robot state, including joint values and tf transforms are published on corresponding rostopics.

roslaunch barrett_wam_gazebo barrett_wam.launch ctrl_mode:=position

Launch the MoveIt! interface

This will start the move_group planning interface, and allow path planning using the MoveIt! library.

roslaunch barrett_wam_gazebo barrett_wam_moveit_planning_execution.launch debug:=true sim:=true

Launch RViz (Optional)

This includes a manual user-interface for setting start/goal positions of the robot end-effector, and generating plans from selected OMPL path planners.

roslaunch barrett_wam_moveit_config moveit_rviz.launch config:=true

Trajectory Following Test

Within the barrett_wam_moveit_control package, you can generate an elliptical trajectory using the matlab file scripts/path_generator.m and making sure to set the appropriate parameters. This will create a cart_path_ellipse_n_***.csv under the trajectories directory.

Currently, the .csv file to use for trajectory following can be set in src/move_group_interface.cpp. TO-DO: read this selection (along with other parameters) from a config file to avoid re-compilation.

You can then run the waypoint-following script through the launch file:

roslaunch barrett_wam_moveit_control moveit_control.launch

The arm will attempt to move to a pre-set start configuration, and execute the trajectory.

barrett_wam_gazebo_sim's People

Contributors

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