ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How do you configure your terminal env to work with ROS/PR2

asked 2011-03-16 08:05:55 -0600

KoenBuys gravatar image

After hearing/reading the question from Morgan I thought to ask around for the tips&tricks you are using in setting up your "terminal comfort zone".

Next to my regular bash_aliases I carry the following ones in my .bash_aliases file:

alias roslatest='source /opt/ros/latest/'
alias rosunstable='source /opt/ros/unstable/setup.bash' 
alias rosboxturtle='source /opt/ros/boxturtle/'
alias roscturtle='source /opt/ros/cturtle/setup.bash'
alias rosdiamondback='source /opt/ros/diamondback/setup.bash'

alias rospath='export ROS_PACKAGE_PATH=/home/koen/ros:$ROS_PACKAGE_PATH'
alias roslocal='export ROS_MASTER_URI=http://localhost:11311'
alias rospr2='export ROS_MASTER_URI=http://pma-robot-rubens1:11311'
alias rosamigo='export ROS_MASTER_URI=http://amigo1:11311'

alias rosdashboard='rosrun pr2_dashboard pr2_dashboard'
alias tuckarm='rosrun pr2_tuckarm b'
alias teleop='roslaunch pr2_teleop teleop_joystick.launch'
alias teleopkey='roslaunch pr2_teleop teleop_keyboard.launch'
alias rviz='rosrun rviz rviz'

# This adds the route to the lab
alias pr2route='sudo route add -net netmask gw'

alias xacro='rosrun xacro'
alias tilthorizontal='rosrun pr2_mechanism_controllers laser_tilt_controller linear 1 0 0'
alias tiltscan='rosrun pr2_mechanism_controllers laser_tilt_controller linear 4 1 0'
alias facedetector='roslaunch face_detector face_detector.wide.launch'
alias teleopbooth='roslaunch pr2_teleop_booth pr2_teleop_booth.launch'

alias rosenv='env | grep ROS'
alias rossim='export ROBOT=sim'
alias rosreal='export ROBOT=pr2'

I assume the bash wizards among us must have created some more fancy onces, these are mainly to cut down on the typing.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2011-03-18 08:06:44 -0600

KoenBuys gravatar image

From GeniousGeeko:

delete ROS log files older than 5 days:

echo "find ~/.ros/log/* -mtime +5 -exec rm -r {} \;" >> ~/.bashrc
edit flag offensive delete link more

Question Tools


Asked: 2011-03-16 08:05:55 -0600

Seen: 523 times

Last updated: Mar 18 '11