ROS Noetic : roscore not found after sourcing the setup.bash, even no broken packages
I have dual booted my laptop with Ubuntu 20.04 along with Windows 10. Then I have tried ROS Noetic installation and followed each & every step correctly in the guide. But roscore & other commands are not working!
Followed official site: http://wiki.ros.org/noetic/Installati...
Steps followed so far after installation:
- Open a new terminal
Source the setup.bash for noetic --> source /opt/ros/noetic/setup.bash
ran roscore to test the installation
roscore
Command 'roscore' not found, but can be installed with:
sudo apt install python3-roslaunch
Even tried to install roscore for noetic & it completes the installation without an error.
sudo apt install --reinstall ros-noetic-roslaunch
sourced the setup & tried again --> still not working with same roscore not found issue.
Checked Installation files --> It is available too.
ls /opt/ros/noetic/
bin include local_setup.sh setup.sh share env.sh lib local_setup.zsh _setup_util.py etc local_setup.bash setup.bash setup.zsh
ls /opt/ros/noetic/share/
actionlib rosclean actionlib_msgs ros_comm actionlib_tutorials rosconsole angles rosconsole_bridge bond ros_core bond_core roscpp bondcpp roscpp_core bondpy roscpp_serialization camera_calibration roscpp_traits camera_calibration_parsers roscpp_tutorials camera_info_manager roscreate catkin ros_environment class_loader roseus cmake_modules rosgraph common-lisp rosgraph_msgs common_msgs roslang common_tutorials roslaunch compressed_depth_image_transport roslib compressed_image_transport roslint controller_interface roslisp controller_manager roslz4 controller_manager_msgs rosmake control_msgs rosmaster control_toolbox rosmsg cpp_common rosnode cv_bridge rosout depth_image_proc rospack desktop rosparam desktop_full rospy diagnostic_aggregator rospy_tutorials diagnostic_analysis rosservice diagnostic_common_diagnostics rostest diagnostic_msgs rostime diagnostics rostopic diagnostic_updater ros_tutorials diff_drive_controller rosunit dynamic_reconfigure roswtf eigen_conversions rqt_action executive_smach rqt_bag filters rqt_bag_plugins forward_command_controller rqt_common_plugins gazebo_dev rqt_console gazebo_msgs rqt_dep gazebo_plugins rqt_graph gazebo_ros rqt_gui gazebo_ros_control rqt_gui_cpp gazebo_ros_pkgs rqt_gui_py gencpp rqt_image_view geneus rqt_launch genlisp rqt_logger_level genmsg rqt_moveit gennodejs rqt_msg genpy rqt_nav_view geometry rqt_plot geometry_msgs rqt_pose_view geometry_tutorials rqt_publisher gl_dependency rqt_py_common hardware_interface rqt_py_console image_common rqt_reconfigure image_geometry rqt_robot_dashboard image_pipeline rqt_robot_monitor image_proc rqt_robot_plugins image_publisher rqt_robot_steering image_rotate rqt_runtime_monitor image_transport rqt_rviz image_transport_plugins rqt_service_caller image_view rqt_shell interactive_markers rqt_srv interactive_marker_tutorials rqt_tf_tree joint_limits_interface rqt_top joint_state_controller rqt_topic joint_state_publisher rqt_web joint_state_publisher_gui rviz kdl_conversions rviz_plugin_tutorials kdl_parser rviz_python_tutorial laser_assembler self_test laser_filters sensor_msgs laser_geometry shape_msgs laser_pipeline simulators librviz_tutorial smach map_msgs smach_msgs media_export smach_ros message_filters smclib message_generation stage message_runtime stage_ros mk std_msgs nav_msgs std_srvs nodelet stereo_image_proc nodelet_core stereo_msgs nodelet_topic_tools tf nodelet_tutorial_math tf2 pcl_conversions tf2_eigen pcl_msgs tf2_geometry_msgs pcl_ros tf2_kdl perception tf2_msgs perception_pcl tf2_py pluginlib tf2_ros pluginlib_tutorials tf_conversions polled_camera theora_image_transport position_controllers topic_tools python_qt_binding trajectory_msgs qt_dotgraph transmission_interface qt_gui turtle_actionlib qt_gui_cpp turtlesim qt_gui_py_common turtle_tf qwt_dependency turtle_tf2 realtime_tools urdf resource_retriever urdf_parser_plugin robot urdf_sim_tutorial robot_state_publisher urdf_tutorial ros vision_opencv rosbag visualization_marker_tutorials rosbag_migration_rule visualization_msgs rosbag_storage visualization_tutorials ros_base viz rosbash webkit_dependency rosboost_cfg xacro rosbuild xmlrpcpp
Also I cannot see any ROS related env variables added after sourcing the setup.bash
source /opt/ros/noetic/setup.bash
printenv | grep ROS --> return nothing
Even checked fro broken packages --> dpkg -l | grep ^..r --> returns nothing( from https://askubuntu.com/questions/77265...)
I dont know what is the issue here. Please help me to figure it out.
Is your linux account running the bash shell? One way to check is the
ps
command. In my terminal the output looks like this:Yes, It is running the bash shell.
At the command line, please show us the output of:
env | grep ROS
Please help I am facing the same issue and when I enter env | grep ROS on terminal it returns nothing.
Thank you @Mike Scheutzow for being helpful.
Use following in your ~/.bashrc and restart a new terminal. Then I was able to use roscore. Sourcing it on the same terminal is not working. Same applied for ROS2 foxy in my case.
source /opt/ros/noetic/setup.bash