Ask Your Question

mariyaz's profile - activity

2020-03-26 00:07:43 -0600 received badge  Famous Question (source)
2020-01-21 07:43:00 -0600 received badge  Famous Question (source)
2019-12-03 03:45:57 -0600 received badge  Notable Question (source)
2019-11-07 07:06:05 -0600 received badge  Notable Question (source)
2019-10-12 02:43:18 -0600 received badge  Popular Question (source)
2019-10-11 20:18:29 -0600 received badge  Popular Question (source)
2019-09-14 15:46:10 -0600 marked best answer Exporting ROS MASTER URI in shell script

I am trying to export ROS_MASTER_URI from a shell script and then launch roscore. In my .sh file I have:

roxterm --tab -e $SHELL -c "cd $CATKIN_WS; $srcdevel; export ROS_MASTER_URI='http://locahost:1234'; roscore -p 1234"

When I do this, however, I get the following error in the roscore tab:

WARNING: ROS_MASTER_URI [http://locahost:1234] host is not set to this machine.

When I echo the ROS_MASTER_URI in this tab, it says that it is localhost:1234, which is correct. When I manually execute these commands, it works correctly and roscore launches without any issues. I am not sure why it does not work when launched from a bash file. It seems as if exporting the ROS MASTER URI only works if it is run directly in the terminal, and not through a bash file. This can't really be the case, though, can it??

2019-09-13 11:56:50 -0600 commented question Exporting ROS MASTER URI in shell script

Yup that was the issue. It's been a long day haha! Thank you!

2019-09-13 11:13:50 -0600 asked a question Exporting ROS MASTER URI in shell script

Exporting ROS MASTER URI in shell script I am trying to export ROS_MASTER_URI from a shell script and then launch roscor

2019-09-13 11:13:50 -0600 asked a question Rosbag C++ API compress rosbag

Rosbag C++ API compress rosbag I need to compress my rosbag before I save it. I know for the command line there is a com