osrf / ros2_test_cases

Tracking of tests to be performed on a ROS 2 release
16 stars 4 forks source link

Check ROS 2 run CLI #1416

Closed marcoag closed 2 months ago

marcoag commented 4 months ago

Configuration

Process

Step 1 - Check run

Actions

You'll have to kill this command with Ctrl-C.

# StdIn - terminal 1
ros2 run demo_nodes_cpp talker

Expected Result

# StdOut - terminal 1
[INFO] [1649123362.906256690] [talker]: Publishing: 'Hello World: 1'
[INFO] [1649123363.906469087] [talker]: Publishing: 'Hello World: 2'
[INFO] [1649123364.905960807] [talker]: Publishing: 'Hello World: 3'
...

Step 2 - Check run with prefix

Action

# StdIn - terminal 1
ros2 run --prefix 'gdb -ex run' demo_nodes_cpp talker

Expected Result

This runs the talker node in gdb. Once the talker is running, you can hit Ctrl-C to get to the console and then type q to quit gdb.

trushant05 commented 4 months ago

I would like to take up this ticket, can you please assign it to me?

trushant05 commented 4 months ago

For the issue mentioned, Step 1 checks out. However, regarding Step 2, it appears necessary to install the debug version of the binaries. It would be beneficial for the documentation to specify this requirement to ensure clarity and ease of setup for future users.

trushant05 commented 4 months ago

I am experiencing issues with ros2.exe failing when using the debug codebase. Has a solution already been found for this problem?

marcoag commented 4 months ago

@Trushant-Adeshara-UM can you please be more specific on what you mean by "issues"?

trushant05 commented 4 months ago

After downloading the ROS2 codebase from GitHub and extracting it to the /dev directory, I sourced the local_setup.bat file and attempted to run ros2 --help. This resulted in the following error:

Error