ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I don't See any reason for doing this, but yes you can so this:

namespace xyz
{
      typedef ros:: Publisher Publishernew;
}

ros::Publisher one_ros_publisher_object;

xyz::Publishernew yet_another_ros_publisher_object;