Skip to content

Commit

Permalink
px_generate_uorb_topic_files: cleanup uneeded conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 authored and bkueng committed Jul 26, 2019
1 parent 85bcfd7 commit 11a2866
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions msg/tools/px_generate_uorb_topic_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,6 @@ def generate_idl_file(filename_msg, msg_dir, alias, outputdir, templatedir, pack
"""
Generates an .idl from .msg file
"""
# Make sure input msg directory exists:
if not os.path.isdir(msg_dir):
os.makedirs(msg_dir)

msg = os.path.join(msg_dir, filename_msg + ".msg")

if (alias != ""):
Expand Down Expand Up @@ -205,10 +201,6 @@ def generate_uRTPS_general(filename_send_msgs, filename_alias_send_msgs, filenam
"""
Generates source file by msg content
"""
# Make sure input msg directory exists:
if not os.path.isdir(msg_dir):
os.makedirs(msg_dir)

send_msgs = list(os.path.join(msg_dir, msg + ".msg") for msg in filename_send_msgs)
alias_send_msgs = list([os.path.join(msg_dir, msg[1] + ".msg"), msg[0].keys()[0]] for msg in filename_alias_send_msgs)
receive_msgs = list(os.path.join(msg_dir, msg + ".msg") for msg in filename_receive_msgs)
Expand Down Expand Up @@ -248,10 +240,6 @@ def generate_topic_file(filename_msg, msg_dir, alias, outputdir, templatedir, pa
"""
Generates a sources and headers from .msg file
"""
# Make sure input msg directory exists:
if not os.path.isdir(msg_dir):
os.makedirs(msg_dir)

msg = os.path.join(msg_dir, filename_msg + ".msg")

if (alias):
Expand Down

0 comments on commit 11a2866

Please sign in to comment.