Fix how topic name should be when not using ros topic name conventions (#177)

Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>

Co-authored-by: Shane Loretz <sloretz@osrfoundation.org>
This commit is contained in:
Ivan Santiago Paunovic 2020-04-30 22:08:55 -03:00 committed by GitHub
parent f820994aab
commit 40ba599462
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1470,7 +1470,7 @@ static std::string make_fqtopic(
bool avoid_ros_namespace_conventions)
{
if (avoid_ros_namespace_conventions) {
return std::string(topic_name) + "__" + std::string(suffix);
return std::string(topic_name) + std::string(suffix);
} else {
return std::string(prefix) + std::string(topic_name) + std::string(suffix);
}