Ros2 windows python demo not working

asked 2020-12-29 15:06:57 -0500

Bob H gravatar image

Trying to get the python demo, 'ros2 run demo_nodes_py listener' to run. Get the following error. Traceback (most recent call last): File "C:\dev\ros2_foxy\lib\demo_nodes_py\listener-script.py", line 33, in <module> sys.exit(load_entry_point('demo-nodes-py==0.9.3', 'console_scripts', 'listener')()) File "C:\dev\ros2_foxy\Lib\site-packages\demo_nodes_py\topics\listener.py", line 32, in main rclpy.init(args=args) File "C:\dev\ros2_foxy\Lib\site-packages\rclpy__init__.py", line 71, in init return context.init(args) File "C:\dev\ros2_foxy\Lib\site-packages\rclpy\context.py", line 59, in init rclpy_implementation.rclpy_init(args if args is not None else sys.argv, capsule) RuntimeError: Failed to initialize init_options: failed to load shared library of rmw implementation: C:\dev\ros2_foxy\bin/rmw_fastrtps_cpp.dll Exception: LoadLibrary error: 126, at C:\ci\ws\src\ros2\rcutils\src\shared_library.c:88, at C:\ci\ws\src\ros2\rmw_implementation\rmw_implementation\src\functions.cpp:64, at C:\ci\ws\src\ros2\rcl\rcl\src\rcl\init_options.c:61

How do I get this to work???

edit retag flag offensive close merge delete