Skip to content

Commit 024c3ee

Browse files
authored
Use absolute topic name for rosout (#549)
Signed-off-by: Ivan Santiago Paunovic <[email protected]>
1 parent 73d2c4c commit 024c3ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rcl/src/rcl/logging_rosout.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ extern "C"
3333
{
3434
#endif
3535

36-
#define ROSOUT_TOPIC_NAME "rosout"
36+
#define ROSOUT_TOPIC_NAME "/rosout"
3737

3838
/* Return RCL_RET_OK from this macro because we won't check throughout rcl if rosout is
3939
* initialized or not and in the case it's not we want things to continue working.

rcl/test/rcl/test_logging_rosout.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class TEST_FIXTURE_P_RMW (TestLoggingRosoutFixture)
9595
// create rosout subscription
9696
const rosidl_message_type_support_t * ts =
9797
ROSIDL_GET_MSG_TYPE_SUPPORT(rcl_interfaces, msg, Log);
98-
const char * topic = "rosout";
98+
const char * topic = "/rosout";
9999
this->subscription_ptr = new rcl_subscription_t;
100100
*this->subscription_ptr = rcl_get_zero_initialized_subscription();
101101
rcl_subscription_options_t subscription_options = rcl_subscription_get_default_options();

0 commit comments

Comments
 (0)