Use absolute topic name for rosout
(#549)
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
This commit is contained in:
parent
73d2c4caec
commit
024c3ee50d
2 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -95,7 +95,7 @@ public:
|
|||
// 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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue