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

export | grep ROS

asked 2014-02-26 16:54:47 -0500

felipe gravatar image

updated 2014-02-26 17:29:59 -0500

Good evening fellow This in developing an application with several rivers and probleamas and presented to me in the installation and thanks to your help I have passed, I come to bother with the following error: income will command terminal: export | grep ROS Error: does not show me any PATH

Thanks for your time and if you could orienting myself to a solution of this problem is the agradesco, happy night for all

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-02-26 18:23:57 -0500

ahendrix gravatar image

You probably need to run:

source /opt/ros/hydro/setup.bash

Or add it to your ~/.bashrc

edit flag offensive delete link more

Comments

It also matter where this is added in .bashrc (I've done some trial and error.. but can't quite say yet if I know why it worked and why it didn't)

SL Remy gravatar image SL Remy  ( 2014-02-27 01:50:23 -0500 )edit
-1

answered 2014-02-26 23:14:36 -0500

AbuIbra gravatar image

updated 2014-02-27 00:12:58 -0500

You can configure your PATH (and the whole ROS environment) "manually". Try adding these lines to the end of your ~/.bashrc

source /opt/ros/hydro/setup.bash

export ROS_MASTER_URI=http://localhost:11311

export ROS_PACKAGE_PATH=/opt/ros/hydro/stacks:/opt/ros/hydro/share:/path/to/my/workspace

export EDITOR='gedit'

edit flag offensive delete link more

Comments

ROS_HOSTNAME=localhost is almost certainly wrong and will in the best case (on a local machine) do nothing. The other ROS variables should have been set by sourcing setup.bash. You don't need to repeat those unless you really know what you're doing.

dornhege gravatar image dornhege  ( 2014-02-26 23:52:22 -0500 )edit

You are right: http://wiki.ros.org/ROS/EnvironmentVariables#ROS_IP.2BAC8-ROS_HOSTNAME I gave a useless example (I edited my answer)

AbuIbra gravatar image AbuIbra  ( 2014-02-27 00:14:36 -0500 )edit
2

I would absolutely NOT try to set up your environment manually. Among other things, you're failing to set up CMAKE_PACKAGE_PATH and LD_LIBRARY_PATH, and you're neglecting all of the rosbash extensions and any other setup steps that are added by installed packages.

ahendrix gravatar image ahendrix  ( 2014-02-27 05:19:11 -0500 )edit

That's why, I put this first line if you look with more attention at my answer: source /opt/ros/hydro/setup.bash

AbuIbra gravatar image AbuIbra  ( 2014-02-27 09:37:20 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2014-02-26 16:54:47 -0500

Seen: 1,354 times

Last updated: Feb 27 '14