-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions
More file actions
executable file
·50 lines (40 loc) · 915 Bytes
/
functions
File metadata and controls
executable file
·50 lines (40 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
# Bash functions to be included in .bashrc file
# to prevent constant use of "source" thing.
# Activate "cling" environment of miniconda
function activate_cling () {
source "activate_cling"
}
function cling () {
activate_cling
}
# Advanced jupyter notebook, running conda and additional languages
function jupyter_x () {
source "activate_cling"
jupyter notebook
}
# Setting ROS master
function set_master () {
source set_master $1
}
function master-uri () {
set_master $1
}
# Setting ROS IP address
function set_ros_ip_addr () {
source set_ros_ip_addr $1
}
function master-ip () {
set_ros_ip_addr $1
}
# Clearing ROS IP address
function clear_ros_ip () {
source clear_ros_ip
}
# Setting ROS Master and IP
function master () {
set_master $1
IP="$(ip_from_domain $1)"
set_ros_ip_addr $IP
}
#---- END ----#