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

Unable to start the talker node even after sourcing the local_setup.bash file

asked 2018-04-04 11:27:11 -0600

aks gravatar image

I installed ROS2 from the following link Linux Development Setup

Even after sourcing the local_setup.bash file i am unable to run

ros2 run demo_nodes_cpp talker

It says, ros2 : command not found.

As far as i know, this error comes only when you dont source the setup file.

edit retag flag offensive close merge delete


You might want to include the exact command you ran locally. Likely there is a difference to the instructions. You could also check your PATH environment variable to see if it contains a location of your workspace.

Dirk Thomas gravatar image Dirk Thomas  ( 2018-04-04 11:43:11 -0600 )edit

@Dirk Thomas what do you mean by running the exact command locally ?

aks gravatar image aks  ( 2018-04-07 17:46:04 -0600 )edit

The tutorial seems to work for others. So chances are high that either you slightly diverged from the instructions or something is different on your system. Only when you include complete information what exactly you did others can provide you with support. E.g. I asked about your PATH variable.

Dirk Thomas gravatar image Dirk Thomas  ( 2018-04-27 15:42:08 -0600 )edit

@Dirk yes, i guess i was diverted from some instructions. I refixed it. We can close this issue.

aks gravatar image aks  ( 2018-05-02 02:02:10 -0600 )edit

The equivalent to "closing an issue" on ROS answers is to add your own answer to your question with what you changed, and then mark it as selected. Please do this so that people know you have found a solution to your initial problem.

dhood gravatar image dhood  ( 2018-05-02 15:48:26 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-15 08:59:42 -0600

aks gravatar image

I had messed up with the installation instructions, did it all again and works fine.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-04-04 11:27:11 -0600

Seen: 975 times

Last updated: Apr 04 '18