Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

patch to support non-ascii string for #834#1024

Closed
furushchev wants to merge 18 commits intoros:kinetic-develfrom
furushchev:fix/610
Closed

patch to support non-ascii string for #834#1024
furushchev wants to merge 18 commits intoros:kinetic-develfrom
furushchev:fix/610

Conversation

@furushchev
Copy link
Copy Markdown
Contributor

@furushchev furushchev commented Apr 1, 2017

I found that the pull request #834 does not support non-ascii rosparams.
Since @mgrrx does not permit pull request (I could not send pull request to his repository), I made another pull request.
This pull request also includes a test code for this issue.

I checked by:

# test.yaml
param: "notascii"  # this is not ascii
<!-- test.launch -->
<launch>
  <rosparam command="load" file="/tmp/test.yaml" />
</launch>
  • roslaunch /tmp/test.launch

    • ros:kinetic-devel:
$ roslaunch test.launch 
... logging to /root/.ros/log/0701c404-16c1-11e7-b3ce-0242ac110002/roslaunch-db478db0f966-22337.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://db478db0f966:37491/

SUMMARY
========

PARAMETERS
 * /param: <...>
 * /rosdistro: kinetic
 * /rosversion: 1.12.6

NODES

auto-starting new master
process[master]: started with pid [22348]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 0701c404-16c1-11e7-b3ce-0242ac110002
process[rosout-1]: started with pid [22361]
started core service [/rosout]
  • mgrrx:fix/610:
# roslaunch test.launch 
... logging to /root/.ros/log/4446ff00-16c1-11e7-bf75-0242ac110002/roslaunch-db478db0f966-22439.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://db478db0f966:38999/

SUMMARY
========

PARAMETERS
 * /param: <...>
 * /rosdistro: kinetic
 * /rosversion: 1.12.6

NODES

auto-starting new master
process[master]: started with pid [22450]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 4446ff00-16c1-11e7-bf75-0242ac110002
process[rosout-1]: started with pid [22465]
started core service [/rosout]
load_parameters: unable to set parameters (last param was [/rosdistro=kinetic
]): 'ascii' codec can't decode byte 0xef in position 607: ordinal not in range(128)
'ascii' codec can't decode byte 0xef in position 607: ordinal not in range(128)
The traceback for the exception was written to the log file
[rosout-1] killing on exit
[master] killing on exit

@mgrrx Could you please port my update (the latest 3 commits) to yours if it's ok?

@dirk-thomas
Copy link
Copy Markdown
Member

@mgrrx This should be considered to be integrated into #834.

@mgrrx
Copy link
Copy Markdown
Contributor

mgrrx commented Apr 6, 2017

I merged your changes into #834. Thanks for your contribution!

@furushchev
Copy link
Copy Markdown
Contributor Author

@mgrrx Thanks for merging!

@furushchev furushchev closed this Apr 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants