Giter Club home page Giter Club logo

customrobotbasicstack's Introduction

customRobotNavigation

A basic version of navigation stack with a custom differential driven robot .

Prerequisites

Create and setup the workspace

mkdir catkin_ws

cd catkin_ws

mkdir src

cd src

catkin_init_workspace

Build

Clone the repository inside workspace and build it using the following command

git clone https://github.com/rajmohan747/customRobotBasicStack.git

catkin_make -DCMAKE_BUILD_TYPE=Release

Execution in simulation environment

Launch the files in the following sequence

roslaunch amr_bringup amr.launch

roslaunch amr_navigation amr_navigation.launch

After launching the above two files,you should be able to see the Gazebo and Rviz for the simulated environment.

Testing in simulation

Now robot can be moved in the simulation environment either using keyboard teleop or Rviz or with the ros service call(robot_goal). Launch the following command for teleoperating the robot

roslaunch amr_bringup amr_teleop.launch 

The amr_motion node in the amr_motion package can be used for enabling the robot the robot and setting the target location for robot.

For activating the robot,use the following ros service call

rosservice call /robot_activate "robotEnable: true" 

Robot can be deactivated at any point of time using,the following command

rosservice call /robot_activate "robotEnable: false" 

The command for robot for moving to any location can be given through either Rviz or through the following ros service

rosservice call /robot_goal "x: 0.0
y: 0.0
z: 0.0
w: 0.0" 

Note : x,y are the x-y cordinates of the target location in map frame and z,w the quaternion values of the target location. Also,make sure if the ros service robotEnable is set as "false" ,robot won't be moving irrespective of whether the command is given from keyboard teleop,Rviz,or service call (robot_activate)

Note : Command velcoities from keyboard teldeop and navigation are being published on topics keyboard/cmd_vel ,navigation/cmd_vel respectively. The priorities for each and output velocity control is being done with the twist_mux packagee.The configuration file can be found at customRobotBasicStack/amr_bringup/config

customrobotbasicstack's People

Contributors

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