Skip to content

Commit 08d397d

Browse files
author
Minggang Wang
committed
Support the default value for wstring
Before this patch, when a field of type wstring had a default value, an error happened. This patch implements this function. A new dependency, console_bridge, is add to the macOS platform. Fix #500
1 parent 54a6c1f commit 08d397d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- run: brew install python
2323
- run: brew install wget cmake cppcheck tinyxml tinyxml2 eigen pcre poco
2424
- run: brew install openssl
25-
- run: brew install asio
25+
- run: brew install asio console_bridge
2626
- run: python3 -m pip install catkin_pkg empy git+https://github.com/lark-parser/[email protected] pyparsing pyyaml setuptools argcomplete colcon-common-extensions numpy
2727
- run: mkdir -p ~/ros2_install && cd ~/ros2_install && wget https://ci.ros2.org/view/packaging/job/packaging_osx/lastSuccessfulBuild/artifact/ws/ros2-package-osx-x86_64.tar.bz2 && tar xf ros2-package-osx-x86_64.tar.bz2
2828
- run: wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash

rosidl_gen/templates/message.dot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class {{=objectWrapper}} {
281281
{{? field.type.isPrimitiveType && !field.type.isArray}}
282282
{{? field.default_value === null}}
283283
this._{{=field.name}}Intialized = false;
284-
{{?? field.type.type === 'string'}}
284+
{{?? field.type.type === 'string' || field.type.type === 'wstring'}}
285285
this._refObject.{{=field.name}} = "{{=field.default_value.replace(/"/g, '\\"')}}";
286286
this._{{=field.name}}Intialized = true;
287287
{{??}}

0 commit comments

Comments
 (0)