Giter Club home page Giter Club logo

udacity_home_service_robot_v2's Introduction

udacity_home_service_robot_v2

Home Service Robot project at udacity


Fix the environment problem

As I mentioned at: https://knowledge.udacity.com/questions/52586, I'm stuck at "Simulation Setup" step.

solution: just switch the env at minicoda3 manually everytime in the Terminal before you do and further actions, like catkin_make, etc.

conda activate /opt/robond/py2


Mapping

Here are steps how to launch it:

  1. open a Terminal with the correct python environment
  2. cd /home/workspace/catkin_ws
  3. source devel/setup.bash !!! do not forget it
  4. source src/scripts/test_slam.sh

I used my own world file which was created in previous project:

xterm -e " roslaunch turtlebot_gazebo turtlebot_world.launch world_file:=/home/workspace/catkin_ws/src/map/myoffice.world " &

It contians following packages:

  • turtlebot_gazebo, a turtlebot with in my world environment
  • gmapping, a gmapping demo to perform SLAM
  • turtlebot_rviz_launchers, a rviz with a configuration that will show navigation
  • turtlebot_teleop with keyboard_teleop, a node that will allow you to command the turtlebot with your keyboard

Localization and Navigation

Here are steps how to launch it:

  1. open a Terminal with the correct python environment
  2. cd /home/workspace/catkin_ws
  3. source devel/setup.bash !!! do not forget it
  4. source src/scripts/test_navigation.sh

We launched 3 things:

  • turtlebot_world with in my world in gazebo
  • amcl_demo, localize the turtlebot
  • view_navigation, observe the map in viz

just in viz and try to select "2D Nav Goal" button and locate it wherever in the map you want the robot to move.

As mentioned in the lesson Localization and Navigation Testing: We will be using the ROS Navigation stack, which is based on the Dijkstra's, a variant of the Uniform Cost Search algorithm, to plan our robot trajectory from start to goal position.

It works for me, great~~

Screenshot 1


Create 2 of ROS Nodes

pick_objects

Here are steps how to launch it:

  1. open a Terminal with the correct python environment
  2. cd /home/workspace/catkin_ws
  3. source devel/setup.bash !!! do not forget it
  4. source src/scripts/pick_objects.sh

The purpose of this script is simulating the scenario that the robot will navigate to the first place to pick up sth and the drop off into the second place.

Screenshot 2

add_markers

Here are steps how to launch it:

  1. open a Terminal with the correct python environment
  2. cd /home/workspace/catkin_ws
  3. source devel/setup.bash !!! do not forget it
  4. source src/scripts/add_markers.sh

This mode is basically the testing phase of our node. The behaviour expected is:

  • Show marker in pick-up zone for 5 seconds
  • Hide marker
  • Wait 5 seconds
  • Show marker in drop-off zone

It works for me, great~~

Screenshot 3


Home Service Robot

Integrate everything together!

Here are steps how to launch it:

  1. open a Terminal with the correct python environment
  2. cd /home/workspace/catkin_ws
  3. source devel/setup.bash !!! do not forget it
  4. source src/scripts/home_service.sh
  • Robot can localize itself and navigate through the map
  • It goes to the pick up zone, marked with a blue marker visible in rviz
  • Once there, the marker disappears and the robot waits for 5 seconds, simulating picking up the virtual object
  • The robot goes then to the drop-off zone
  • Once there, a blue marker is displayed

It works for me, great~~

Screenshot 4

udacity_home_service_robot_v2's People

Contributors

tao-meng avatar

Watchers

James Cloos avatar  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.