Skip to content

Commit

Permalink
Use absolute topic name for rosout (ros2#549)
Browse files Browse the repository at this point in the history
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno authored and ralph-lange committed Dec 10, 2019
1 parent 36918ef commit 6504364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rcl/src/rcl/logging_rosout.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ extern "C"
{
#endif

#define ROSOUT_TOPIC_NAME "rosout"
#define ROSOUT_TOPIC_NAME "/rosout"

/* Return RCL_RET_OK from this macro because we won't check throughout rcl if rosout is
* initialized or not and in the case it's not we want things to continue working.
Expand Down
2 changes: 1 addition & 1 deletion rcl/test/rcl/test_logging_rosout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class TEST_FIXTURE_P_RMW (TestLoggingRosoutFixture)
// create rosout subscription
const rosidl_message_type_support_t * ts =
ROSIDL_GET_MSG_TYPE_SUPPORT(rcl_interfaces, msg, Log);
const char * topic = "rosout";
const char * topic = "/rosout";
this->subscription_ptr = new rcl_subscription_t;
*this->subscription_ptr = rcl_get_zero_initialized_subscription();
rcl_subscription_options_t subscription_options = rcl_subscription_get_default_options();
Expand Down

0 comments on commit 6504364

Please sign in to comment.