Skip to content

Commit

Permalink
Get rid of extra slashes in namespace ros#1094
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Jul 14, 2017
1 parent 2cf14f8 commit 2d22f97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/roslaunch/src/roslaunch/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import os
import logging

import re
import socket
import sys
try:
Expand Down Expand Up @@ -456,6 +457,7 @@ def __init__(self, package, node_type, name=None, namespace='/', \
self.type = node_type
self.name = name or None
self.namespace = rosgraph.names.make_global_ns(namespace or '/')
self.namespace = re.sub("//+", "/", self.namespace)
self.machine_name = machine_name or None
self.respawn = respawn
self.respawn_delay = respawn_delay
Expand Down

0 comments on commit 2d22f97

Please sign in to comment.