Git Product home page Git Product logo

robot_rviz_simulation's Introduction

This package runs a simulation of the UR robot in a car

the UR robot can be controlled with the velocity/position-resolved controllers from the standard pr2 control manager

the car can move in the direcetion of x and y in a planner.

test environment:ubuntu14.04

In order to run this code, install the following packages beforehand:

$ sudo apt-get install ros-indigo-pr2-mechanism-model ros-indigo-pr2-controller-manager ros-indigo-control-toolbox ros-indigo-pr2-mechanism-controllers

after you install the dependencies and clone the code in your workspace,you can run the following lines of code

$ roslaunch arm_car_rviz_simulation ur10_car_simulation.launch

To test the simulation, you can manually move the UR robot in velocity control mode like so:

$ rostopic pub -r 20 /arm_vel/command iai_control_msgs/MultiJointVelocityImpedanceCommand '{velocity:[1,0,0,0,0,0]}'

Here you are commanding the first joint with a velocity of 1rad/s

To test the UR robot simulation in position control mode do the following:

$ rostopic pub -r 20 /arm_pos_controller/command std_msgs/Float32MultiArray '{data:[0,1.57,0,0,0,0]}'

Position values per joint are in [rad].

To test the car,you can manually move the car in the direction of x and y like so:

$ rostopic pub /cmd_vel geometry_msgs/Twist '{linear:[1,1,0],angular:[0,0,1]}' 

robot_rviz_simulation's People

Contributors

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