ROS2 Resolve topic names rclcpp
In ros1 cpp I was able to resolve a string containing the topic name to the actual topic name that accounts for remappings using the following block:
// Determine topic name (including remapping)
std::string mag_topic_name = "/imu/mag";
mag_topic_name = ros::names::resolve(mag_topic_name);
Is there a similar way I can do this in rclcpp
ROS2? I tried digging through the documentations, but could not find something.
Thanks in advance!