Questions tagged [bash]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
2 views

LOCALAPPDATA not found in mavproxy.py

I have the following file /home/pi/mavproxy.sh which forwards the flight controller telemetry data using mavproxy to GCS(Ground Control Station) ...
Mubashir's user avatar
0 votes
1 answer
2 views

setup.sh syntax error on source

I'm running Ubuntu 22.04 on my desktop computer (9th gen intel i5 processor, nvidia gtx 1080 gpu). I followed the instructions to install the Ros 2 Rolling Ubuntu binaries for my system (from this ...
user avatar
0 votes
1 answer
31 views

import rclpy without sourcing setup.bash

Hi, I want to use the rclpy module in a python script. This script is called by a flask application which is invoked by an apache2 webserver and does not get the necessary bash context. When I run the ...
user avatar
0 votes
1 answer
116 views

ROS2 run bash script

I would like to run a bash script as a node liek the following: ros2 run package script.sh I know this is possible in ROS1, however I cannot find the right way to do it in ROS2. Do you have any idea ...
user avatar
0 votes
1 answer
3 views

setup.bash bad call with catkin_make_isolated

Hi ros org, I have experienced a bad issue with catkin_make_isolated. The file devel_isolated/setup.bash is not source by ...
user avatar
0 votes
1 answer
12 views

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: ...
user avatar
0 votes
1 answer
2 views

Scripts don't see ROS if executed by ProcessBuilder()

I want to execute a script with a ProcessBuilder(). My code is: ...
user avatar
0 votes
1 answer
4 views

Fixing installation of bash script

Playing with catkin_lint, I found out about this mistake: $ catkin lint -W2 --pkg my_pkg my_pkg: warning: file 'scripts/foo.sh' is executable but not installed but ...
user avatar
0 votes
1 answer
12 views

I installed ros kinetic but it says there's no file directory for bash electric

I installed Ros KInetic, using ubunto 16.04 But now everytime I open the terminal there's bash: /opt/ros/electric/setup.bash: No such file or directory and ...
user avatar
0 votes
1 answer
5 views

Messages not received on master when the talker runs from startup

Hi, I have a detection node acting as a talker (det_talker.py) on one Ubuntu 16.04 machine and another node acting as a listener (...
user avatar
0 votes
1 answer
5 views

simple_navigation_goals no such file or directory

Hello, I am new to ROS. I am using ubuntu 16.04 and am trying to follow this tutorial I followed all the steps, however when I run ./bin/simple_navigation_goals in the end, I get bash: ./bin/...
user avatar
0 votes
2 answers
4 views

How could I use "ROS" commands in a bash file?

Hey ! First, i'm sorry for my english , i don't use translator and i'm not really good at. Let me explain my problem : I want to use "PuTTY" via Windows' terminal (to connect to linux) with ...
user avatar
0 votes
1 answer
6 views

How to source ROS Kinetic in Ubuntu Core via ssh?

Hi everyone, I am having a small issue sourcing ROS kinectic in my Raspberry PI 3(OS: Ubuntu Core). Every time I want to use ROS i have to use the command ...
user avatar
0 votes
1 answer
11 views

Is there a shell command to get ros distro?

Is there something I can run in the shell to get something like: "ros-kinetic" or "ros-lunar", depends on what distro I have? " Originally posted by auzn on ROS Answers with ...
user avatar
0 votes
1 answer
114 views

start and kill rosbag record from bash shell script

Let's say we want to record a rosbag, and run a python script from a bash script. ...
user avatar
0 votes
1 answer
7 views

Rviz robot model will not open via script

Without bash and python script: master and rviz works successfully When I run "roscore" in first terminal. Master runs successfully ...
user avatar
0 votes
4 answers
29 views

Get timestamp during roslaunch

Hi ROS community! Is there a way to get the date/time to pass on as a (string) parameter, when roslaunching a node? The idea is to pass a filename as parameter to a node, which will have a specific ...
user avatar
0 votes
1 answer
3 views

Use param for remapping in launch file

Hello, I have several nodes with common parameters so I tought it would be nice for debugging to have all of them just in one file and not in all of them. This is working fine but the problem is that ...
user avatar
0 votes
1 answer
2 views

anybody have an unsetup.bash?

Would like to run the opposite of source devel/setup.bash, i.e., unsetup.bash. Has anyone coded this up already? Originally posted by rosnutsbolts on ROS Answers with karma: 3 on 2016-10-10 Post ...
user avatar
0 votes
1 answer
13 views

Bash:ROSRUN:command not found

I need some help. I tried to modify some topics in other computer usin Node Manager but it sends me: bash: rosrun: command not found. Originally posted by elputodelaesquina on ROS Answers with karma: ...
user avatar
0 votes
1 answer
7 views

Shell bash used in a roslaunch[SOLVED]

Hi! I am having a problem when trying to execute a comand from a roslaunch file which I dont have when running it directly from the shell. When I execute ...
user avatar
0 votes
1 answer
21 views

Use roscore, roslaunch and rosrun in bash script

Hello! I want to start roscore and several ros nodes from a other program with a bash script: ...
user avatar
0 votes
1 answer
6 views

roslaunch as executable

Hi! Maybe this is more of an Linux-question instead of ROS. But anyway, maybe someone could help: I would like to know how I can build a single file which runs a roslaunch by double click on it. The ...
user avatar
0 votes
2 answers
3 views

How do I use catkin in a directory containing a space character?

I'm trying to use catkin in a directory that contains a space, when pressing TAB to trigger the tab completion the script fails: ```~/SpiderOak Hive/...
user avatar
1 vote
1 answer
8 views

How to pass an argument to roslaunch file from shell script?

I have a shell script that takes some input from the user in the form of arguments and executes a launch file with some nodes. One of these nodes is a rosbag record....
user avatar
0 votes
1 answer
3 views

Catkin Problems on sourcing workspaces

Hi, I am currently trying to source multiple catikin workspaces but I mostly get only one to work, which is the last one I include. What is the problem there? It was working most of the time but, ...
user avatar
0 votes
1 answer
2 views

How do I prevent roslaunch from changing the terminal screen title?

Hi, I use a series of bash scripts to run multiple applications on my robot at once. Many of the scripts spawn extra terminals that call a single roslaunch each. My ...
user avatar
0 votes
1 answer
4 views

bash problems on pr2, robot command not found

Hey guys, I was having some issues with the kinect on the pr2 and so I had to uninstall and reinstall openni. I now get the kinect working (roslaunch / ros commands in general work), but somehow I ...
user avatar
0 votes
1 answer
2 views

sudo apt-get install ros-<hydro>-ros-tutorials not installing

In tutorial 5: understanding ROS nodes, the lightweight simulator does not install. The message provided is... bash: hydro: No such file or directory. Any idea how to get it working? Originally ...
user avatar
0 votes
1 answer
4 views

A launcher for program.c++ that launches roscore

Hi, I have a question. I´m use ROS Hydro in Ubuntu 12.04. I have a program in C++ that launch ros --> roscore and others nodes, as are: hokuyo_node or hector_slam. I want launch this program.c++ ...
user avatar
0 votes
1 answer
3 views

setup.bash setup.sh setup.zsh

I want to find out the differences between 3 files created when using the command 'rosws init ~/fuerte-ws /opt/ros/fuerte' : setup.bash setup.sh setup.zsh. In the rosbuild tutorial, it tells me to ...
user avatar
0 votes
1 answer
22 views

What does source command actually do?

Hi, I've read that $ source devel/setup.bash is the same as $ .devel/setup.bash and that it reads and executes setup.bash script in the current shell. Opposite to this $ ./devel/setup.bash what would ...
user avatar
0 votes
1 answer
12 views

use ros commands in bash script

Hey, so I need to compile my workspace every time I add it into my computer. This proves to be very time consuming. I would like to write a script that runs these commands: ...
user avatar
0 votes
1 answer
1 view

catkin_add_env_hooks cross-platform?

What are implications of catkin_add_env_hooks and Windows? Do they just get ignored, with the intent that they're mainly there to provide window-dressing stuff like tab completion? Originally posted ...
user avatar
0 votes
1 answer
2 views

convenience scripts for switching catkin workspaces

A while back I came across a post or mail of someone using some short bash script to conveniently source different setup.bash files. It was something along the lines of searching the home directory (...
user avatar
0 votes
1 answer
1 view

Package paths with spaces don't work with rosbash?

The location of the package I am working in is /host/Users/Mark\ Won/Documents/School\ Work/College/Junior/Junior\ 2nd\ Semester/CSE\ 468/workspace/tutorials I ...
user avatar
0 votes
1 answer
1 view

How to orchestrate automatic multiple (non-)ros component based system start?

Problem/Scenario I am trying implement a way to automatically bootstrap/start a complex system that uses diverse ros and non-ros components. My web-search lead me to roslaunch, which seems to be most ...
user avatar
0 votes
1 answer
6 views

rosservice call in bash causing issues

Hi, I am trying to use bash to execute a bunch of rosservice calls, one after the other. Some work but the ones that ask for position ones don't: rosservice call /wam/cart_move "position: 0 0 0....
user avatar
0 votes
1 answer
1 view

Shell script in rosdep rule error

Update The similar error happens even with the rule that's already commited. For example on Ubuntu, add glc (link to rosdep rule) as dependency in package.xml and <...
IsaacS's user avatar
  • 4,502
0 votes
1 answer
1 view

setup.bash error on OSX

I just reinstalled Groovy on OSX 10.8.4 using Homebrew. I moved my old ROS directory from /opt/ros to /opt/ros_old so this is a completely new install. Now when I do: ...
user avatar
0 votes
1 answer
1 view

open shell bash permission denied

Each time I open a new shell window, I get the following: “source: command not found bash: /opt/ros/groovy/setup.bash: Permission denied I get this problem trying ...
user avatar
0 votes
1 answer
1 view

ROS Answers SE migration: About bash

I have given the cmd like this cd ~/fuerte_workspace/sandbox bash: cd: /home/abi/fuerte_workspace/sandbox: No such file or directory how can i recover this error always i'm getting error in my bash ...
user avatar
0 votes
3 answers
48 views

Can I run a bash script using roslaunch?

I read http://answers.ros.org/question/12327/is-there-a-way-to-wait-for-certain-topics-to-be-published-in-a-launchfile/ and http://answers.ros.org/question/33772/run-shell-command-from-launch-script/ ...
user avatar
0 votes
1 answer
2 views

Irobot create commands

Hi! I created a file called irobot.sh. I would like to open 3 different consoles to run 3 different commands. #!/bin/bash konsole --hold -e "roscore" konsole --hold -e "rosrun ...
user avatar
0 votes
1 answer
3 views

running bash in a launch file

I have a robot with 2 identical cameras that I need to distinguish between at runtime. The only thing that tells me which is which is the serial number and which of the two ports they appear on is ...
user avatar
0 votes
2 answers
7 views

roscd returns "bash: reldir: unbound variable"

Hi everyone, When going through the tutorial, I get errors with certain ROS (navigation) functions: ...
user avatar