Questions tagged [environment-variables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
41 views

ROS Environment variables not set after new Humble install on Ubuntu 22.04

I carefully followed the install instructions for installing ROS2 Humble binary. https://docs.ros.org/en/humble/Installation/Ubuntu-Install-Debians.html The install had no errors. And I did the talker-...
rosnoob's user avatar
0 votes
2 answers
64 views

Best way to add package's models path to GAZEBO_MODEL_PATH in ROS2?

In ROS1, you could add your package's models path to the GAZEBO_MODEL_PATH in package.xml (e....
shonigmann's user avatar
0 votes
1 answer
5 views

rosout and stderr not appearing in ROS_LOG_DIR

I changed the ROS_LOG_DIR from the default and now I am only seeing node specific stdout.log files in the generated folders. I know my nodes are generating stderr messages with ROS_ERROR_STREAM but I ...
user avatar
0 votes
1 answer
5 views

How to Implement Global Ros Variables

I am working on a stationary pick-and-place type robot. I have created a large catkin workspace for a project that uses various packages. Currently, when I want to change certain variables in my ...
user avatar
0 votes
1 answer
8 views

Catkin install destination

I'm trying to figure out where my files should be installed by the Cmake install() macro (ROS melodic on Ubuntu 18.04). I found this list of catkin environment variables which are relative to the <...
user avatar
0 votes
1 answer
1 view

paths for the package to ros envrionment variables, not found

Hi, have a package with one cpp file, worked great. added another cpp file and built the workspace, now rosrun can't locate the package any more. when creating the package I have implemented this ...
user avatar
0 votes
1 answer
3 views

Launching ROS on QNX 7.0

I have compiled ROS from source for QNX and ported the binaries to the QNX machine. As a first step Id have to source the setup script in the devel folder. Since "source" command does not ...
user avatar
0 votes
1 answer
2 views

Roslaunch and env variables for HOSTNAME

In my launch file I want to read the hostname from user input and when it is missing, it will use the local hostname by default. I use this line in my launch file ...
user avatar
0 votes
1 answer
1 view

How to reference environmental variables inside an upstart installed launch file?

I have successfully managed to install a launch file but upon rebooting found that none of the environmental variables referenced in the launch file are found. Granted, the launch files are guilty of ...
user avatar
0 votes
1 answer
1 view

opening data file or image in specific folder in package

Is there a way to access a specific folder to open a data file or image in an ROS package? I suppose I could find the environmental variable HOME then write the full path by adding the strings, but it ...
user avatar
0 votes
1 answer
3 views

How to use variable's value (subscriber function) in another function

Hello all ! I want to pass the variable which is set to its value when called the callback function. and then want to use the value of the variable in another function. ...
user avatar
0 votes
1 answer
3 views

Sending variables from one nodes to another

Hello all ! I am using Hydro version of ROS. I have created a node in which I made a variable and store the value in it. Now I have to pass that variable value to another node. So that it can access ...
user avatar
0 votes
1 answer
6 views

ROS_DISTRO was set to 'fuerte' before. Please make sure that the environment does not mix paths from different distributions

ROS_DISTRO was set to 'fuerte' before. Please make sure that the environment does not mix paths from different distributions. I HAVE INSTALLED FUERTE AND HYDRO . HOW TO SET ENVIRONMENTAL VARIABLES FOR ...
user avatar
0 votes
1 answer
4 views

Setting up ROS, where to put environment variable?

Hi, Where should I place the following in Ubuntu 12.04? export ROS_PACKAGE_PATH=~/catkin_ws:$ROS_PACKAGE_PATH I want to launch this everytime so that I can just use roscd beginner_tutorials everytime. ...
user avatar
0 votes
2 answers
2 views

Eclipse not resolving anything

I recently got eclipse setup and loaded the catkin project into it. However it seems incapable of resolving anything in the project. Not even standard math functions like atan or sqrt. I am running ...
user avatar
0 votes
1 answer
3 views

ROS_PACKAGE_PATH environment

Hi, I'm trying to set my ROS_PACKAGE_PATH variable permanently. I appended the following line to the etc/environment file: ROS_PACKAGE_PATH="/home/zayin/catkin_ws/src:/opt/ros/groovy/share:/opt/...
user avatar
0 votes
1 answer
2 views

ROS_PACKAGE_PATH for catkin beginners

Section 1.2.2 of beginner level tutorial "8.Using rqt_console and roslaunch" says: *If roscd fails, remember to set the ROS_PACKAGE_PATH variable in your terminal. Then the commands will ...
user avatar
0 votes
1 answer
2 views

rosmake does not respect ROS_PARALLEL_JOBS or --pjobs

rosmake in ROS fuerte does not seem to respect the ROS_PARALLEL_JOBS=-jN environment variable nor the --pjobs=N command line option for compiling with N+1 processes. Instead, the number of rosmake ...
user avatar
0 votes
1 answer
2 views

Switching catkin workspaces carries old env vars

Often I want to switch from my main catkin workspace oldws to sandbox workspace newws. But sourcing ...
IsaacS's user avatar
  • 4,492
0 votes
1 answer
1 view

Duplicate directories in $ROS_PACKAGE_PATH

ROS_PACKAGE_PATH variable contains duplicate elements. It's weird, since I was following the very first tutorials step by step. When we were supposed to check that our variable was pointing to the ...
user avatar
0 votes
1 answer
2 views

NodeHandle::getParam() is unable to resolve Environmental variables

I have a launchfile in which I want to specify the path to a specific file, e.g. haarcascade_frontalface_alt.xml. Normally, I would just use the ...
user avatar