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-22 10:41] – 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 11: | Line 14: | ||
| For ROS beginners there are many highly pedagogic tutorials at https:// | For ROS beginners there are many highly pedagogic tutorials at https:// | ||
| whole course on navigation/ | whole course on navigation/ | ||
| + | |||
| + | ====Some bashrc tips for heron_workspace_setup==== | ||
| + | |||
| + | ===Pimp history=== | ||
| + | Add this to your '' | ||
| + | |||
| + | '' | ||
| + | export HISTTIMEFORMAT=" | ||
| + | export HISTSIZE=10000 \\ | ||
| + | export HISTFILESIZE=10000 \\ | ||
| + | export HISTIGNORE=" | ||
| + | shopt -s histappend \\ | ||
| + | PROMPT_COMMAND=" | ||
| + | '' | ||
| + | |||
| + | ===ROS Configuration=== | ||
| + | Add this to your '' | ||
| + | |||
| + | '' | ||
| + | export ROS_WS=~/ | ||
| + | source $ROS_WS/ | ||
| + | alias src=' | ||
| + | export CURRENT_CMAKE_BUILD_DIR=" | ||
| + | \\ | ||
| + | function print_ros_variables () { \\ | ||
| + | echo " | ||
| + | echo " | ||
| + | echo " | ||
| + | echo "ROS Workspace: " $ROS_WS \\ | ||
| + | echo " | ||
| + | } \\ | ||
| + | print_ros_variables \\ | ||
| + | '' | ||
| + | |||
| + | ===Configure Master Way 1 - Static=== | ||
| + | Add this to your '' | ||
| + | |||
| + | '' | ||
| + | export ROS_MASTER_URI=' | ||
| + | '' | ||
| + | |||
| + | ===Configure Master Way 2 - Flexible === | ||
| + | |||
| + | Add this to your '' | ||
| + | |||
| + | '' | ||
| + | alias ros_master_local=" | ||
| + | alias ros_master_remote=" | ||
| + | ros_master_local \\ | ||
| + | '' | ||
| + | |||
| + | ===Resource .bashrc=== | ||
| + | Add this to your '' | ||
| + | |||
| + | '' | ||
| + | alias resource=" | ||
| + | '' | ||
| + | ===Automatically open a tmux session when connecting through ssh=== | ||
| + | Add this to your '' | ||
| + | '' | ||
| + | if [[ -z " | ||
| + | tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux \\ | ||
| + | fi \\ | ||
| + | '' | ||
| + | |||
| + | ===Add SSH keys to a keyring for multiple shells=== | ||
| + | This frees you from typing the password of your ssh key every time. | ||
| + | |||
| + | Install the `keychain` package. | ||
| + | '' | ||
| + | eval `keychain --agents ssh --timeout 60 --eval id_rsa` | ||
| + | '' | ||
| + | |||
| + | |||
| + | |||
| + | ====== ROS Best Practices ====== | ||
| + | |||
| + | * [ROS Best Practice Collection](https:// | ||