Skip to content

Commit 9887d38

Browse files
committed
match updated .ros2 model def
1 parent d41773b commit 9887d38

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

rossdl_cmake/rossdl_cmake/__init__.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ def get_publishers_name_type_from_node(package, arfifacts, node):
5151

5252
def get_qos_from_data(data):
5353
ret = ''
54-
if 'qos_history_depth' in data:
55-
ret = 'rclcpp::QoS(' + str(data['qos_history_depth']) + ')'
56-
if 'qos_profile' in data:
57-
if data['qos_profile'] == 'sensor_qos':
54+
if 'depth' in data:
55+
ret = 'rclcpp::QoS(' + str(data['depth']) + ')'
56+
if 'profile' in data:
57+
if data['profile'] == 'sensor_qos':
5858
ret = 'rclcpp::SensorDataQoS()'
59-
if 'qos_reliability' in data:
60-
if data['qos_reliability'] == 'reliable':
59+
if 'reliability' in data:
60+
if data['reliability'] == 'reliable':
6161
ret = ret + '.reliable()'
62-
elif data['qos_reliability'] == 'best effort':
62+
elif data['reliability'] == 'best_effort':
6363
ret = ret + '.BestEffort()'
6464
# Here we need to comple all the options
6565
return ret
@@ -133,10 +133,10 @@ def get_message_header_from_type(msg_type):
133133

134134

135135
def to_cpp_type(ptype):
136-
if ptype == 'string':
136+
if ptype == 'String':
137137
return 'std::string'
138-
elif ptype == 'float':
139-
return 'float'
138+
elif ptype == 'Double':
139+
return 'double'
140140
# Here we need to comple all the options
141141

142142

0 commit comments

Comments
 (0)