Git Product home page Git Product logo

a-star-on-turtlebot's Introduction

ENPM 661: Path Planning for Autonomous Robots

A_Star Implementation on Turtlebot

Instructions for Project3- Phase2

Setup

Create a workpace

mkdir -p project3_ws/src
cd ~/project3_ws/src

Clone the reposiory

git clone https://github.com/shantanuparabumd/turtlebot3_project3.git

Source ROS (Enable ROS commands)

source /opt/ros/galactic/setup.bash

Build the workspace

cd ~\project3_ws
colcon build --packages-select turtlebot3_project3

Source ROS (Package will be identified)

source install/setup.bash

Test Setup

Launch Environment

ros2 launch turtlebot3_project3 competition_world.launch

Explore Topics

ros2 topic list

Publish to topic (cmd_vel)

ros2 topic pub \cmd_vel geometry_msgs/msg/Twist "linear:
  x: 0.1
  y: 0.0
  z: 0.0
angular:
  x: 0.0
  y: 0.0
  z: 0.1"

Write a script

We have provide a script fro reference in teleop.py

You can run the script using

ros2 run turtlebot3_project3 teleop.py

Add new Python executable

  • Write a new python script and store it in a folder
  • Update the CMakeLists.txt file
# Install python scripts

install(PROGRAMS 
  scripts/teleop.py
  # You can add more scripts here
  DESTINATION lib/${PROJECT_NAME}
)
  • Build the package
  • Source the install folder
  • Run the executable
ros2 run turtlebot3_project3 teleop.py

Error

  • Pynput Module Not Found
pip install pynput

a-star-on-turtlebot's People

Contributors

robosac333 avatar

Watchers

 avatar

Forkers

syzygy21

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.