forked from dheera/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc.ros
More file actions
41 lines (35 loc) · 1.29 KB
/
bashrc.ros
File metadata and controls
41 lines (35 loc) · 1.29 KB
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
if [[ -e "/opt/ros" ]]; then
ROSDISTRO=`ls -1 /opt/ros | head -1`
alias ros="source /opt/ros/$ROSDISTRO/setup.bash"
fi
alias foxy="source /opt/ros/foxy/setup.bash"
alias galactic="source /opt/ros/galactic/setup.bash"
alias noetic="source /opt/ros/noetic/setup.bash"
alias melodic="source /opt/ros/melodic/setup.bash"
alias kinetic="source /opt/ros/kinetic/setup.bash"
alias xros="source-bash /opt/ros/$ROSDISTRO/setup.bash"
alias xfoxy="source-bash /opt/ros/foxy/setup.bash"
alias xgalactic="source-bash /opt/ros/galactic/setup.bash"
alias xnoetic="source-bash /opt/ros/noetic/setup.bash"
alias xmelodic="source-bash /opt/ros/melodic/setup.bash"
alias xkinetic="source-bash /opt/ros/kinetic/setup.bash"
alias rb="ros2 bag"
alias rr="ros2 run"
alias rt="ros2 topic"
alias rl="ros2 launch"
alias rn="ros2 node"
alias rp="ros2 pkg"
# publish to a topic without needing to specify the message type.
# (why can't rostopic pub just lookup the type?!)
#
# usage: rospub /topic/name value
#rospub() {
# topic_type=`rostopic info /rosout | grep Type: | awk '{print $2}'`
# rostopic pub $1 $topic_type $2
#}
# view image topics without redundancy, like having to say 'image' FOUR
# times in one command.
# usage: rosimageview /some/camera
#rosimageview() {
# rosrun image_view image_view image:=$1/image_raw
#}