Robotics StackExchange | Archived questions

Rosrun unable to run a program although executable file has been created

Hi,

I try to run ROS packages on Windows 11. I install ROS on Windows using this tutorial . I tried to create my 1st ROS package using this tutorial. However, when I ran ROS command "rosrun helloworldpkg helloworldnode", I got the error "Couldn't find executable named helloworldnode". The tutorial to build a ros package in Windows describes if I get that error I could resolve it using devel and setup.bat. I followed the instruction but that could not resolve the error. There is no compilation error in the code. I found the helloworldnode.exe file on the path c:\opt\ros\noetic\catkinws\build\helloworldpkg. If I run helloworld_node from this path it ran well. However, I am unable to execute the file using the rosrun command.

It would be great if someone help me to figure out the error.

Thank you.

Asked by Ellena on 2023-04-20 22:11:20 UTC

Comments

Just a quick comment:

I try to run ROS packages on Windows 11

not to discourage you, but AFAIK, there is no support for anything but Windows 10 at the moment.

ROS1-on-Windows is difficult enough as it is, and trying to use a newer version of the OS is not going to make it any easier.

Asked by gvdhoorn on 2023-04-22 02:04:03 UTC

I used platform - Windows 11, Ros version - Noetic, visual studio 2019.

Asked by Ellena on 2023-04-22 07:32:49 UTC

Yes.

So an unsupported platform.

Asked by gvdhoorn on 2023-04-22 10:13:17 UTC

Answers

have you tried source devel/setup.bash from catkin_ws?

Asked by Flow on 2023-04-21 10:10:49 UTC

Comments

Yes. But did not work.

Asked by Ellena on 2023-04-21 15:37:43 UTC