Unable to start the talker node even after sourcing the local_setup.bash file
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.
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 what do you mean by running the exact command locally ?
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 yes, i guess i was diverted from some instructions. I refixed it. We can close this issue.
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.