I have finished the first parts of the tutorial and now trying to do the real robot project.
I have 2 main issues :
When I run the bridge according to the commands that are given, I still don’t see all the topics bridged (with ros2 topic list). Especially cmd_vel. Is it normal even if there is the “–bridge-all-topics” (It seems that I can still publish on cmd_vel and that it will works)
If I try to source the ros2_ws/install/setup.bash (to teleop of execute my node) file, I have the following error :
not found: "/home/user/ros2_ws/install/turtlebot3_node/share/turtlebot3_node/local_setup.bash"
Are you working in the simulation? The reason why you might not see the cmd_vel topic is because no one is publishing to the topic yet, so the bridge connection hasn’t been made.
As for the teleop issue, sometimes the sourcing isn’t done right when you past more than one command at a time. Try typing them one by one in a terminal:
I’m facing the same turtlebot3_node problem:
In a new termin I typed the first command:
source ros2_ws/install/setup.bash
but it prompts:
user:~$ source ros2_ws/install/setup.bash
ROS_DISTRO was set to 'foxy' before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.
not found: "/home/user/ros2_ws/install/turtlebot3_node/share/turtlebot3_node/local_setup.bash"