Is there a C++ equivalent of rosgraph.names.ns_join
title says it all
title says it all
Is there a C++ equivalent of rosgraph.names.ns_join?
Not really. If you look at the source code for names.cpp
found at:
https://docs.ros.org/en/indigo/api/ro...
std::string ros::names::append ( const std::string & left, const std::string & right ) Append one name to another.
Definition at line 118 of file names.cpp.
the append()
is not an equivalent to ns_join()
found in module rosgraph.names
https://docs.ros.org/en/kinetic/api/r...
ns_join(ns, name)
source code
Join a namespace and name. If name is unjoinable (i.e. ~private or /global) it will be returned without joining
Parameters: ns (str) - namespace ('/' and '~' are both legal). If ns is the empty string, name will be returned. name, str - a legal name Returns: str
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2021-12-02 13:02:37 -0500
Seen: 31 times
Last updated: Dec 03 '21
Install ROS Noetic on Ubuntu 20.04 LTS (KDE NEON)
Custom robot hardware_interface implementation
Can we launch ros1_bridge using launch file
How do I remove a dependency of a package?
Assign values to arrow marker starting position
rospy TimeSynchronizer with rosbag play *.bag --clock --loop -r 0.1, use_sim_time=true?
RViz writes to incorrect directory when starting using robot_startup
[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'