Skip to content

Commit

Permalink
urtps templates: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
TSC21 authored and bkueng committed Jul 26, 2019
1 parent 11a2866 commit eb951ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion msg/templates/uorb_microcdr/microRTPS_client.cpp.em
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import gencpp
from px_generate_uorb_topic_helper import * # this is in Tools/
from px_generate_uorb_topic_files import MsgScope # this is in Tools/

topic_names = [s.short_name for idx, s in enumerate(spec)]
topic_names = [s.short_name for s in spec]
send_topics = [(alias[idx] if alias[idx] else s.short_name) for idx, s in enumerate(spec) if scope[idx] == MsgScope.SEND]
send_base_types = [s.short_name for idx, s in enumerate(spec) if scope[idx] == MsgScope.SEND]
recv_topics = [(alias[idx] if alias[idx] else s.short_name) for idx, s in enumerate(spec) if scope[idx] == MsgScope.RECEIVE]
Expand Down
2 changes: 1 addition & 1 deletion msg/templates/urtps/RtpsTopics.cpp.em
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ void RtpsTopics::publish(uint8_t topic_ID, char data_buffer[], size_t len)
{
switch (topic_ID)
{
@[for idx, topic in enumerate(send_topics)]@
@[for topic in send_topics]@
case @(rtps_message_id(ids, topic)): // @(topic)
{
@(topic)_ st;
Expand Down

0 comments on commit eb951ed

Please sign in to comment.