-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a407e1f
commit d432e32
Showing
1 changed file
with
79 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
|
||
|
||
alias eb='vim ~/.bashrc' | ||
alias sb='source ~/.bashrc' | ||
|
||
function ros1_setup() { | ||
alias cs='cd ~/catkin_ws/src' | ||
alias cm='cd ~/catkin_ws && catkin build' | ||
alias kg='killall -9 gazebo & killall -9 gzserver & killall -9 gzclient' | ||
alias rqt_tf_tree='rosrun rqt_tf_tree rqt_tf_tree' | ||
alias eh='sudo vim /etc/hosts' | ||
alias canup='sudo ip link set can0 up type can bitrate 500000' | ||
|
||
export TURTLEBOT3_MODEL=waffle | ||
source /opt/ros/noetic/setup.bash | ||
source ~/catkin_ws/devel/setup.bash | ||
|
||
export ROS_MASTER_URI=http://localhost:11311 | ||
export ROS_HOSTNAME=localhost | ||
} | ||
|
||
function ros2_setup() { | ||
source /opt/ros/foxy/setup.bash | ||
source ~/robot_ws/install/local_setup.bash | ||
|
||
source /usr/share/colcon_argcomplete/hook/colcon-argcomplete.bash | ||
source /usr/share/vcstool-completion/vcs.bash | ||
source /usr/share/colcon_cd/function/colcon_cd.sh | ||
export _colcon_cd_root=~/robot_ws | ||
|
||
export ROS_DOMAIN_ID=7 | ||
export ROS_NAMESPACE=robot1 | ||
|
||
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp | ||
# export RMW_IMPLEMENTATION=rmw_connext_cpp | ||
# export RMW_IMPLEMENTATION=rmw_cyclonedds_cpp | ||
# export RMW_IMPLEMENTATION=rmw_gurumdds_cpp | ||
|
||
# export RCUTILS_CONSOLE_OUTPUT_FORMAT='[{severity} {time}] [{name}]: {message} ({function_name}() at {file_name}:{line_number})' | ||
export RCUTILS_CONSOLE_OUTPUT_FORMAT='[{severity}]: {message}' | ||
export RCUTILS_COLORIZED_OUTPUT=1 | ||
export RCUTILS_LOGGING_USE_STDOUT=0 | ||
export RCUTILS_LOGGING_BUFFERED_STREAM=1 | ||
|
||
alias cw='cd ~/robot_ws' | ||
alias cs='cd ~/robot_ws/src' | ||
alias ccd='colcon_cd' | ||
alias sb='source ~/.bashrc' | ||
alias cb='cd ~/robot_ws && colcon build --symlink-install' | ||
alias cbs='colcon build --symlink-install' | ||
alias cbp='colcon build --symlink-install --packages-select' | ||
alias cbu='colcon build --symlink-install --packages-up-to' | ||
alias ct='colcon test' | ||
alias ctp='colcon test --packages-select' | ||
alias ctr='colcon test-result' | ||
|
||
alias rt='ros2 topic list' | ||
alias re='ros2 topic echo' | ||
alias rn='ros2 node list' | ||
|
||
alias killgazebo='killall -9 gazebo & killall -9 gzserver & killall -9 gzclient' | ||
|
||
alias af='ament_flake8' | ||
alias ac='ament_cpplint' | ||
|
||
alias testpub='ros2 run demo_nodes_cpp talker' | ||
alias testsub='ros2 run demo_nodes_cpp listener' | ||
alias testpubimg='ros2 run image_tools cam2image' | ||
alias testsubimg='ros2 run image_tools showimage' | ||
} | ||
|
||
function run_bridge() { | ||
source /opt/ros/noetic/setup.bash | ||
source /opt/ros/foxy/setup.bash | ||
ros2 run ros1_bridge dynamic_bridge --bridge-all-topics | ||
} | ||
|
||
|
||
|