Giter VIP home page Giter VIP logo

tb3_apriltag's Introduction

Main software repository for tb3-aprilTag

This is the main software repository for the turtlebot3 simulation.

  • For extensive technical documentation, please refer to aprilTag

tb3_gazebo Notice

You should git pull everytime before you push a new commit!

Building

pass: ubuntu 16.04.2 ROS version: kinetic Gazebo 8 git clone https://github.com/YuehChuan/tb3_aprilTag.git

To compile the code,

cd ~/tb3_aprilTag
catkin_make
cd ..
source environment.sh

For aprilTag, make sure you have comiled shared library follow these steps:

cd tb3_aprilTag/software/apriltags-cpp
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
sudo make install

more details for aprilTag https://github.com/xenobot-dev/apriltags_ros

How to fly

Demo1.aprilTag detection ROS wrapper

my camera: PS3eye_webcam aprilTag size 165mm

open 3 terminal

terminal 1

cd ~/tb3_aprilTag/

source environment.sh

rostopic echo /apriltags/detections
roslaunch apriltags usb_cam_apriltags.launch
rosrun tags_sub tags_sub

terminal 2

cd ~/tb3_aprilTag/

source environment.sh

rosrun tags_sub tags_sub

rostopic echo /apriltags/detections is the detection array

Demo2.rqt_multiplot_plugin

rqt_multiplot_plugin is develop by ETH zurich ASL, it is an usefultool to visualize rostopic. Espectially, 2D plot. (x-t, y-t, theta-t, x-y)

more details and tutorial: https://github.com/ethz-asl/rqt_multiplot_plugin

Install


sudo apt-get update
sudo apt-get install ros-kinetic-rqt-multiplot

Usage

Run turtlebo3 gazebo simulation, and rviz to see topics. Use rqt_multiplot_plugin to see topic like x,y position.

for turtlebot3 simultion details, see here: https://turtlebot3.readthedocs.io/en/latest/simulation.html

open 4 terminal

do 4 command strongly use byobu or terminator for your convinience.

roslaunch turtlebot3_gazebo turtlebot3_world.launch

roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch

roslaunch turtlebot3_gazebo turtlebot3_gazebo_rviz.launch

rosrun rqt_multiplot rqt_multiplot

open rqt_multiplot_plugin preconfig file: ~/tb3_aprilTag/catkin_ws/src/tb3_multiplot.xml

terminal 1

cd ~/tb3_aprilTag/

source environment.sh

roslaunch turtlebot3_gazebo turtlebot3_world.launch

terminal 2

cd ~/tb3_aprilTag

source environment.sh

roslaunch turtlebot3_teleop turtlebot3_teleop_key.launch

terminal 3

cd ~/tb3_aprilTag

source environment.sh

roslaunch turtlebot3_gazebo turtlebot3_world.launch

terminal 4

cd ~/tb3_aprilTag

source environment.sh

rosrun rqt_multiplot rqt_multiplot

Demo3.simulate aprilTag in gazebo world, then detect it!

Launch gazebo world then insert aprilTag models(tag0, Tag1, Tag2, Tag3) launch aprilTag detect node

terminal 1

cd ~/tb3_aprilTag/

source environment.sh

roslaunch turtlebot3_gazebo turtlebot3_world.launch

Launch gazebo world

terminal 2

cd ~/tb3_aprilTag/

source environment.sh

roslaunch apriltags gazebo_cam_apriltags.launch

see virtual aprilTag detection

aprilTag_detect

terminal 3

cd ~/tb3_aprilTag/

source environment.sh

rostopic echo /apriltags/detections

please leave issue in issue if you got problem build these.

Have fun!

also, Contribution welcome!

TODO

add noise for aprilTag in gazebo even white noise or render the object by raytracing.

How to

The workflow is as follows.

(1) You make a private branch, say your name-devel.

(2) You work on your branch.

(3) You push often to your branch.

(4) Create a “pull request”. You can do this by going to the Github page for your branch and click on the button “compare and pull request” .

tb3_apriltag's People

Contributors

yuehchuan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tb3_apriltag's Issues

possible on Indigo with gazebo?

Hello, Thanks for your improvement. I am however using ros indigo and gazebo to make simulation. Will that be possible to use it on Indigo?
Best Regards

where is the "node_tags_sub.cpp"?

Hello, I have some question while I was catkin_make your project. Suddenly,I found some error in Cmakelist.txt of the package "tags_sub",listed as follow:"add_executable(tags_sub src/node_tags_sub.cpp src/tags_sub.cpp)",but your source file /src only have one cpp:tags_sub.cpp.Could you please help me solve the problem?Thanks!

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.