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 #1304

Closed marcoag closed 4 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.

ganatrask commented 4 months ago

I tested this and works as expected.

Screenshot from 2024-05-01 17-02-35

can you close this?