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

baxter.sh can not run for baxter simulator

asked 2016-09-16 04:35:38 -0600

yin gravatar image

updated 2016-09-16 04:37:51 -0600

Hello everyone,
I have installed the baxter simulator in my PC, but when I run the baxter.sh, it comes this message: image description

I can not find some useful solution about this from google, thank you for help!

$ env | grep ROS

ROS_DISTRO=indigo

ROS_PACKAGE_PATH=/home/yin/catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks ROS_ETC_DIR=/opt/ros/indigo/etc/ros

ROS_ROOT=/opt/ros/indigo/share/ros

ROS_MASTER_URI=http://localhost:11311

ROSLISP_PACKAGE_DIRECTORIES=/home/yin/catkin_ws/devel/share/common-lisp

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-09-16 08:35:22 -0600

The issue is definitely that you are usingzsh as your default shell. On line 178 of the baxter.sh script, you can see they start a new shell using the SHELL environment variable with the argument --rcfile. zsh doesn't have this argument available, and that is what triggers your error. If you want to use this script as-is, you can't use zsh. If you want zsh and this script, then you'll need to debug the script a bit

Just FYI, I personally never use the baxter.sh script when working with Baxter. All the script really does is ensure that you have set the ROS_MASTER_URI and the ROS_HOSTNAME/ROS_IP environment variables correctly. I manage these variables with my own scripts and avoid their script primarily because

  • their script requires you to actually edit it to update some of the variables -- this is not convenient for me. I work with multiple Baxter's that use the same workspace. I don't like needing to constantly change the script.
  • I don't like how they automatically change my prompt to be such a long string. I have a highly customized prompt, and don't want it to be messed with.
edit flag offensive delete link more

Comments

That's it. Thank you very much for kind help, I get it.

yin gravatar image yin  ( 2016-09-16 10:27:32 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-09-16 04:35:38 -0600

Seen: 347 times

Last updated: Sep 16 '16