Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tutorials:general [2022/03/23 10:55] – johano | tutorials:general [2022/09/02 14:04] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Tutorials on ROS/SkiROS ====== | ||
+ | |||
+ | |||
skiros2_examples give some basic introduction to SkiROS (https:// | skiros2_examples give some basic introduction to SkiROS (https:// | ||
/src | /src | ||
Line 18: | Line 21: | ||
'' | '' | ||
- | export HISTTIMEFORMAT=" | + | export HISTTIMEFORMAT=" |
- | export HISTSIZE=10000 | + | export HISTSIZE=10000 |
- | export HISTFILESIZE=10000 | + | export HISTFILESIZE=10000 |
- | export HISTIGNORE=" | + | export HISTIGNORE=" |
- | shopt -s histappend | + | shopt -s histappend |
- | PROMPT_COMMAND=" | + | PROMPT_COMMAND=" |
'' | '' | ||
Line 30: | Line 33: | ||
'' | '' | ||
- | export ROS_WS=~/ | + | export ROS_WS=~/ |
- | source $ROS_WS/ | + | source $ROS_WS/ |
- | alias src=' | + | alias src=' |
- | export CURRENT_CMAKE_BUILD_DIR=" | + | export CURRENT_CMAKE_BUILD_DIR=" |
- | + | \\ | |
- | function print_ros_variables () { | + | function print_ros_variables () { \\ |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo "ROS Workspace: " $ROS_WS | + | echo "ROS Workspace: " $ROS_WS |
- | echo " | + | echo " |
- | } | + | } \\ |
- | print_ros_variables | + | print_ros_variables |
'' | '' | ||
Line 48: | Line 51: | ||
Add this to your '' | Add this to your '' | ||
- | + | '' | |
- | '' | + | export ROS_MASTER_URI='[[http:// |
- | '' | + | '' |
===Configure Master Way 2 - Flexible === | ===Configure Master Way 2 - Flexible === | ||
+ | |||
Add this to your '' | Add this to your '' | ||
'' | '' | ||
- | alias ros_master_local=" | + | alias ros_master_local=" |
- | alias ros_master_remote=" | + | alias ros_master_remote=" |
- | ros_master_local | + | ros_master_local |
'' | '' | ||
Line 68: | Line 71: | ||
alias resource=" | alias resource=" | ||
'' | '' | ||
- | ## Automatically open a tmux session when connecting through ssh | + | ===Automatically open a tmux session when connecting through ssh=== |
Add this to your '' | Add this to your '' | ||
'' | '' | ||
- | if [[ -z " | + | if [[ -z " |
- | tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux | + | tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux |
- | fi | + | fi \\ |
'' | '' | ||
- | ## Add SSH keys to a keyring for multiple shells | + | ===Add SSH keys to a keyring for multiple shells=== |
This frees you from typing the password of your ssh key every time. | This frees you from typing the password of your ssh key every time. | ||