GithubHelp home page GithubHelp logo

kurreman / dopey-dd2419 Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 110.66 MB

Forked repo of large group project that took place at KTH Jan-June 2023. I had main responsibility for localization & mapping, behaviour tree, hardware implementation, path planning and integration. Did also do other task including some computer vision.

Shell 0.03% C++ 20.31% Python 44.38% C 0.36% CMake 10.11% Jupyter Notebook 24.81%

dopey-dd2419's Introduction

Dopey Handbook

Get access to Dopey remotely

Using master URI/remote roscore

  1. CONNECT TO INTERNET
  2. Power Dopey on
  1. On client ssh [email protected]
  2. If first time, accept everything
  3. Input password Dopey5000
  4. Congrats! You now have access to Dopey's mind (files)!

Using remote desktop (Sunshine/Moonlight)

On host (Dopey)

  1. In a terminal run command sunshine
  2. PLUG IN HDMI DUMMY IN GPU HDMI PORT

On client (Mission control or own computer {don't forget to pair if that's the case})

  1. In a terminal run command moonlight
  2. Have patience and wait until a GUI window pops up
  3. Click the symbol "robot"
  4. Click the desktop to enter Dopey's desktop.
  5. Have patience and wait
  6. Go nuts and drift Dopey as much as you want to
  • Toggle fullscreen: ctrl+shift+alt+X
  • Toggle cursor/keyboard: ctrl+shift+alt+Z
  • Disconnect sessions: ctrl+shift+alt+Q

Config/credentials

Control dopey with keyboard or joystick

  1. Be inside Dopey
  2. cd ~/dd2419_ws
  3. Create at least 2 terminal tabs/windows
  4. In one: roscore
  5. In the other roslaunch launch main.launch
  6. Use the joystick (hold A+move left stick [don't forget USB-stick]) or the keyboard (ikjl) to control Dopey
  7. DOPE!

See Dopey's view live in Rviz

  1. Make sure Dopey's alive
  2. roscore
  3. roslaunch launch rviz.launch

Play a recorded rosbag and visualize in Rviz

  1. roscore
  2. roslaunch launch mainSIMULATION.launch
  3. cd ~/dd2419_ws/bagfiles
  4. rosbag play --clock --pause <bag-name>.bag - as defined in Play rosbag

Rosbag

Record rosbag

  1. cd ~/<workspace>/bagfiles - IMPORTANT!
  • rosbag record -a - record everything

  • rosbag record -O subset <Topic-1> <Topic-2> ... - record only specific topics

Play rosbag

  • roslaunch launch rvizSIMULATION.launch

  • rosbag play --clock --pause <bag-name>.bag - will start in paused mode, press SPACE to play

Packages

Joystick Package

sudo apt-get install ros-noetic-joy

py_trees and py_trees_ros

sudo apt install ros-noetic-py-trees

sudo apt install ros-noetic-py-trees-ros

Cam Packages

Milestone 1 run through

  1. Plug the battery into Dopey
  2. Use mission control computer
  3. Invade Dopey's privacy
  4. Take control over Dopey's life
  5. cd ~/<workspace>/bagfiles - IMPORTANT!
  6. bash record.sh
  7. Drive around and collect data
  8. ctrl-c in terminal of recording
  9. Plug Dopey back into a screen, keyboard and mouse
  10. Inside Dopey relive the best moments of Dopey's life (Use the rosbag called milestone1.bag)

dopey-dd2419's People

Contributors

dopeyrobot avatar louisdeoliveira avatar kurreman avatar majaastrand avatar xiorem1 avatar alicekramer avatar xiorem 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.