Giter Club home page Giter Club logo

ros_on_windows_10's Introduction

How to make ROS Kinetic/Melodic work on Windows 10

This approach uses Windows Subsystems for Linux, WSL for short.

  1. Go to Microsoft Store and install Ubnutu 18.04 LTS (for ROS Melodic) or Ubnutu 16.04 LTS (for ROS Kinetic) follow this video
  2. Open the installed Ubuntu distro you just installed and install ROS on it
  3. In install MobaXterm and follow the following article

Tips and tricks

Add the following lines to your ~/.bashrc

export DISPLAY=192.168.0.183:0.0 # or whatever you read on MobaXterm
alias open='explorer.exe .'
alias coding='cd /mnt/c( or any partion name like d or e)/[folder where your code is]'

Troubleshooting

If faced with error messages related to D-bus read this article

If faced with error related to Segmentation error Segmentation fault (core dumped) add the following to your ~/.bashrc

export LIBGL_ALWAYS_INDIRECT=

The solution was found here

With the help of this

How to make Windows Terminal behave like Terminator from Ubuntu

Open Windows Terminal and press Ctrl+, and copy the setting in profile.json

Make SSH and Github work without asking for Passphrase all the time

Add this to ~/.bashrc

env=~/.ssh/agent.env

agent_load_env () { test -f "$env" && . "$env" >| /dev/null ; }

agent_start () {
    (umask 077; ssh-agent >| "$env")
    . "$env" >| /dev/null ; }

agent_load_env

# agent_run_state: 0=agent running w/ key; 1=agent w/o key; 2= agent not running
agent_run_state=$(ssh-add -l >| /dev/null 2>&1; echo $?)

if [ ! "$SSH_AUTH_SOCK" ] || [ $agent_run_state = 2 ]; then
    agent_start
    ssh-add
elif [ "$SSH_AUTH_SOCK" ] && [ $agent_run_state = 1 ]; then
    ssh-add
fi

unset env

My specific ROS sourcings

Add these to ~/.bashrc

source /opt/ros/kinetic/setup.bash
source /mnt/d/coding/svea_research/devel/setup.bash
alias qtdesigner='qtchooser -run-tool=designer -qt=5'

ros_on_windows_10's People

Contributors

aljanabim avatar

Stargazers

 avatar  avatar

Watchers

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