From dc53791df00919497022a6aec3da3a10f82d0d67 Mon Sep 17 00:00:00 2001 From: PetervDooren <19806646+PetervDooren@users.noreply.github.com> Date: Fri, 3 May 2024 09:31:11 +0200 Subject: [PATCH] switch to ip for connections rosbots --- setup.bash | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/setup.bash b/setup.bash index ba6bf9e..74c5f4c 100644 --- a/setup.bash +++ b/setup.bash @@ -65,12 +65,15 @@ function emc-update } # -------------------------------------------------------------------------------- -export ROS_HOSTNAME=$HOSTNAME.local +#export ROS_HOSTNAME=$HOSTNAME.local alias mrc-teleop='rosrun emc_system teleop.py' alias mrc-update=emc-update +export BOBO_IP='192.168.6.68' +export COCO_IP='192.168.6.186' + if [ "$ROBOT_REAL" == true ] then alias hero-start='rosparam load $EMC_SYSTEM_DIR/src/emc_system/config/hero_mrc_config.yaml' @@ -80,11 +83,11 @@ then alias define-map='rosrun map_server map_server' else - alias sshbobo='ssh -A -X husarion@bobo.local' - alias sshcoco='ssh -A -X husarion@coco.local' + alias sshbobo='ssh -A -X husarion@$BOBO_IP' + alias sshcoco='ssh -A -X husarion@$COCO_IP' alias sshhero='ssh -A -X mrc@192.168.44.51' - alias bobo-core='export ROS_MASTER_URI=http://bobo.local:11311' - alias coco-core='export ROS_MASTER_URI=http://coco.local:11311' + alias bobo-core='export ROS_MASTER_URI=http://$BOBO_IP:11311' + alias coco-core='export ROS_MASTER_URI=http://$COCO_IP:11311' alias hero-core='export ROS_MASTER_URI=http://192.168.44.51:11311' alias mrc-sim='rosrun emc_simulator simulator' alias sim-rviz='roslaunch emc_simulator viz.launch'