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

'ros2' is not recognized as an internal or external command

asked 2021-12-12 08:58:26 -0500

Kushal_ gravatar image

I am trying to install ros2 galactic on my windows 10 system using the official installation guide. Official guide. Under Build the ROS 2 code when I entered

colcon build --merge-install

in the VS code Admin command line, the output was

Summary: 0 packages finished [0.20s]

I ignored the 0 and kept following the steps. When I reached the Test and run section and ran the command:

ros2 run demo_nodes_cpp talker

I got the output as

'ros2' is not recognized as an internal or external command, operable program or batch file.

I am stuck now. I guess the problem lies when I was in the Build the ROS 2 code section. Please help me out.

edit retag flag offensive close merge delete

Comments

If it says it built zero packages, then possibly ROS didn't build at all. Can you please post the complete console log of your attempt to install it?

Geoff gravatar image Geoff  ( 2021-12-12 17:26:35 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-12-12 23:21:49 -0500

Kushal_ gravatar image

I closed the command line so I ran the Get the ROS 2 code bit again.


Microsoft Windows [Version 10.0.19042.1348] (c) Microsoft Corporation. All rights reserved.

C:\Windows\system32>cd \dev\ros2_galactic

C:\dev\ros2_galactic>curl -sk https://raw.githubusercontent.com/ros... -o ros2.repos

C:\dev\ros2_galactic>vcs import src < ros2.repos ...................................................................................................... === src\ament/ament_cmake (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ament/ament_index (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ament/ament_lint (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ament/ament_package (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ament/google_benchmark_vendor (git) ===

Your branch is up to date with 'origin/main'. Already on 'main' === src\ament/googletest (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ament/uncrustify_vendor (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\eProsima/Fast-CDR (git) ===

HEAD is now at 53a0b8c Bump version to 1.0.20 (#105) === src\eProsima/Fast-DDS (git) ===

Your branch is up to date with 'origin/2.3.x'. Already on '2.3.x' === src\eProsima/foonathan_memory_vendor (git) ===

Your branch is up to date with 'origin/master'. Already on 'master' === src\eclipse-cyclonedds/cyclonedds (git) ===

Your branch is up to date with 'origin/iceoryx'. Already on 'iceoryx' === src\eclipse-iceoryx/iceoryx (git) ===

Your branch is up to date with 'origin/release_1.0'. Already on 'release_1.0' === src\osrf/osrf_pycommon (git) ===

Your branch is up to date with 'origin/master'. Already on 'master' === src\osrf/osrf_testing_tools_cpp (git) ===

Your branch is up to date with 'origin/master'. Already on 'master' === src\ros-perception/image_common (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ros-perception/laser_geometry (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ros-planning/navigation_msgs (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ros-tooling/libstatistics_collector (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ros-tracing/ros2_tracing (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ros-visualization/interactive_markers (git) ===

Your branch is up to date with 'origin/galactic'. Already on 'galactic' === src\ros-visualization/python_qt_binding (git) ===

Your branch is up to date with 'origin/main'. Already on 'main' === src\ros-visualization/qt_gui_core (git) ===

Your branch is up to date with 'origin/galactic-devel'. Already on 'galactic-devel' === src\ros-visualization/rqt (git) ===

Your branch is up to date with 'origin/crystal-devel'. Already on 'crystal-devel' === src\ros-visualization/rqt_action (git) ===

Your branch is up to date with 'origin/ros2'. Already on 'ros2' === src\ros-visualization/rqt_bag (git) ===

Your branch is up to date with 'origin/ros2'. Already on 'ros2' === src\ros-visualization/rqt_console (git) ===

Your branch is up to date with 'origin/ros2'. Already on 'ros2' === src\ros-visualization/rqt_graph (git) ===

Your branch is up to date with 'origin/galactic-devel'. Already on 'galactic-devel' === src\ros-visualization/rqt_msg (git) ===

Your branch is up ... (more)

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-12-12 08:58:26 -0500

Seen: 319 times

Last updated: Dec 12 '21