ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I highly suspect the commands and paths you have mentioned.
opt/ros/humble/setup.bash
should be /opt/ros/humble/setup.bash
. install/setup.bash
should be install/local_setup.bash
Finally, please make sure that you can see your workspace by executing printenv | grep PATH
as shown below:
$ printenv | grep PATH
AMENT_PREFIX_PATH=/home/ravi/ros2_ws/install/examples_rclpy_minimal_publisher:/opt/ros/galactic
COLCON_PREFIX_PATH=/home/ravi/ros2_ws/install
PYTHONPATH=/home/ravi/ros2_ws/install/examples_rclpy_minimal_publisher/lib/python3.8/site-packages:/opt/ros/galactic/lib/python3.8/site-packages
LD_LIBRARY_PATH=/opt/ros/galactic/opt/yaml_cpp_vendor/lib:/opt/ros/galactic/opt/rviz_ogre_vendor/lib:/opt/ros/galactic/lib/x86_64-linux-gnu:/opt/ros/galactic/lib::/usr/local/cuda-11.1/lib64
PATH=/opt/ros/galactic/bin:/home/ravi/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/cuda-11.1/bin:/home/ravi/.local/bin
This is how my workspace is structured:
.
├── Desktop
├── Documents
├── Downloads
├── Music
├── Pictures
├── Public
├── ros2_ws
│ ├── build
│ ├── install
│ ├── log
│ └── src
│ └── minimal_publisher
├── Templates
└── Videos