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

Visual studio developer command prompt freezes after launching 2nodes in windows 10

asked 2021-10-25 03:55:09 -0500

TinyTurtle gravatar image

updated 2021-10-25 08:19:15 -0500

Hi,

I am unable to run more than 2 nodes in windows10.

The moment I launch more than 2 nodes. The vs developer command prompt freezes.

Steps I followed:

  1. Open visual studio developer command prompt.
  2. source ros_foxy with command "call ros2_foxy/local_setup.bash"
  3. build my workspace "my_workspace" with command "colcon build"
  4. After successful build, i source the workspace "install/local_setup.bash"
  5. Finally, i launch all the node(5nodes) using launch file "ros2 launch mypackage mypackage.py"

expected behavior : All nodes should have been launch.

actual behavior: Only two nodes are launched.

Few more inputs: I am using ros2 inside a windows vm. 8GB RAM, 110GB C:\, 4cores. Once two nodes are launched(out of 5nodes) i am unable to run any other ros2 related programs like rqt, ros bag record/play. But interestingly i can run all apps via commandline other than ros2 related.

I did check the CPU load and memory usage it was well under 60% of utilization.

My development setup

  1. Visual studio : 2019
  2. Python : 3.8.3
  3. Windows: 10
  4. ROS2_Foxy: Patch 6.1
  5. C++ 11

Any hints or suggestions highly appreciated.

Thanks

edit retag flag offensive close merge delete

Comments

Unless you're running nodes as background processes, not being able to use the terminal after starting a node seems like expected behaviour (as in: it's just a program running, which is blocking).

I believe it would help (others) if you could describe exactly how you are starting things, and what you expected to happen (if something else happened).

gvdhoorn gravatar image gvdhoorn  ( 2021-10-25 05:02:59 -0500 )edit

Even if I run 5 separate instances of vs developer command prompt with each running different nodes. Still I can only run two nodes.

TinyTurtle gravatar image TinyTurtle  ( 2021-10-25 08:17:19 -0500 )edit

Hi! I guess I have the exact same problem, in fact I created this post. Did you manage to solve it? If not, are you using dynamic array allocation? Are you sending dynamic array via topic (like an image)? Do you think it is a ros problem or is your code causing it?

alberto gravatar image alberto  ( 2022-06-20 04:26:28 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-06-23 08:58:00 -0500

alberto gravatar image

Try to change your RMW implementation to rmw_cyclonedds_cpp as said here. For me, this did the trick.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2021-10-25 03:55:09 -0500

Seen: 133 times

Last updated: Jun 23 '22