Skip to content

Commit bbc2595

Browse files
committed
Fix launchViz xdot
1 parent 355a104 commit bbc2595

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

launch_tools/scripts/launch_tools/launchViz.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
* Redistributions in binary form must reproduce the above copyright
1313
notice, this list of conditions and the following disclaimer in the
1414
documentation and/or other materials provided with the distribution.
15-
* Neither the name of Systems, Robotics and Vision Group, University of
16-
the Balearican Islands nor the names of its contributors may be used to
17-
endorse or promote products derived from this software without specific
15+
* Neither the name of Systems, Robotics and Vision Group, University of
16+
the Balearican Islands nor the names of its contributors may be used to
17+
endorse or promote products derived from this software without specific
1818
prior written permission.
1919
2020
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
@@ -43,7 +43,7 @@
4343
import roslib.packages
4444
except ImportError:
4545
# Checks the installation of the necessary python modules
46-
rospy.loginfo((os.linesep * 2).join(["An error found importing one module:",
46+
print((os.linesep * 2).join(["An error found importing one module:",
4747
str(sys.exc_info()[1]), "You need to install it", "Stopping..."]))
4848
sys.exit(-2)
4949

@@ -71,7 +71,7 @@ def show_graph(g,package = 0):
7171
g.write('}')
7272
if len(g.getvalue())>26:
7373
drawable = True
74-
window = xdot.xdot.DotWindow()
74+
window = xdot.DotWindow()
7575
window.set_dotcode(g.getvalue())
7676
if package:
7777
window.set_title('Package {0}'.format(package))
@@ -144,7 +144,7 @@ def draw_folder(g,folder):
144144
incl_ext = os.path.basename(node.attrib.get('file'))
145145
incl = os.path.splitext(incl_ext)[0]
146146
node_includes.append(incl)
147-
if node.tag == "node":
147+
if node.tag == "node":
148148
node_type = node.attrib.get('type')
149149
if node_type == "nodelet":
150150
node_type = node.attrib.get('args')

0 commit comments

Comments
 (0)