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 11:31] – Johan Oxenstierna | tutorials:general [2022-09-02 16: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 12: | Line 15: | ||
| whole course on navigation/ | whole course on navigation/ | ||
| + | ====Some bashrc tips for heron_workspace_setup==== | ||
| - | ### Pimp history | + | ===Pimp history=== |
| Add this to your '' | Add this to your '' | ||
| '' | '' | ||
| - | 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=" |
| '' | '' | ||
| - | ### ROS Configuration | + | ===ROS Configuration=== |
| Add this to your '' | Add this to your '' | ||
| '' | '' | ||
| - | 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 |
| '' | '' | ||
| - | #### Configure Master Way 1 - Static | + | ===Configure Master Way 1 - Static=== |
| Add this to your '' | Add this to your '' | ||
| + | '' | ||
| + | export ROS_MASTER_URI=' | ||
| + | '' | ||
| - | '' | + | ===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 |
| '' | '' | ||
| - | #### Resource .bashrc | + | ===Resource .bashrc=== |
| Add this to your '' | Add this to your '' | ||
| Line 67: | 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. | ||