Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roslaunch opening .launch file encoding error #454

Closed
al-ship opened this issue Jul 2, 2014 · 2 comments
Closed

roslaunch opening .launch file encoding error #454

al-ship opened this issue Jul 2, 2014 · 2 comments
Assignees
Labels

Comments

@al-ship
Copy link

al-ship commented Jul 2, 2014

My launch file has UTF-8 encoding.
When I run "roslaunch server.launch" it fails with message:

'ascii' codec can't encode characters in position 0-6: ordinal not in range(128)

@dirk-thomas
Copy link
Member

Please post you launch file as an example which can be used to reproduce the issue.

@al-ship
Copy link
Author

al-ship commented Jul 3, 2014

<?xml version="1.0" encoding="UTF-8"?>
<launch>
  <!--  <node name="s_play" pkg="sound_play" type="soundplay_node.py"/> 
    <node name="speaking" pkg="smart_home_speech" type="speaking_node.py">
        <param name="mapfile" value="$(find smart_home_speech)/share/russian.map"/>
    </node>
-->
    <node name="notification" pkg="smart_home_core" type="notification_node.py">
        <param name="mail_to" value="aleksey.shipulya@gmail.com"/>
        <param name="smtp_user" value="aleksey.shipulya"/>
        <param name="smtp_password" value=""/>
    </node>
    <node name="server" pkg="smart_home_core" type="command_server.py"/>
    <node name="rosserial" pkg="rosserial_python" type="serial_node.py">
        <param name="port" value="/dev/ttyACM0"/>
    </node>

    <!-- sensors -->
    <node name="leak_sensor_kitchen" pkg="smart_home_sensors" type="bit_sensor.py">
        <param name="sensor_id" value="/mnt/1wire/12.5BF53D000000/sensed.A"/>
        <param name="check_interval" value="300"/>
    </node>
    <node name="leak_sensor_kitchen_notif" pkg="smart_home_sensors" type="sensor_notifier_node.py">
        <param name="sensor_topic" value="/leak_sensor_kitchen"/>
        <param name="notification_text" value="Внимание! Сработал датчик протечки на кухне"/>
        <param name="criteria" value="eq"/>
        <param name="notification_value" value="False"/>
        <param name="notification_target" value="log,voice,mail,sms"/>
    </node>

    <node name="leak_sensor_toilet" pkg="smart_home_sensors" type="bit_sensor.py">
        <param name="sensor_id" value="/mnt/1wire/12.86F03D000000/sensed.A"/>
        <param name="check_interval" value="300"/>
    </node>
    <node name="leak_sensor_toilet_notif" pkg="smart_home_sensors" type="sensor_notifier_node.py">
        <param name="sensor_topic" value="/leak_sensor_toilet"/>
        <param name="notification_text" value="Внимание! Сработал датчик протечки в туалете!"/>
        <param name="criteria" value="eq"/>
        <param name="notification_value" value="False"/>
        <param name="notification_target" value="log,voice,mail,sms"/>
    </node>

    <node name="leak_sensor_bath" pkg="smart_home_sensors" type="bit_sensor.py">
        <param name="sensor_id" value="/mnt/1wire/12.AEF33D000000/sensed.A"/>
        <param name="check_interval" value="300"/>
    </node>
    <node name="leak_sensor_bath_notif" pkg="smart_home_sensors" type="sensor_notifier_node.py">
        <param name="sensor_topic" value="/leak_sensor_bath"/>
        <param name="notification_text" value="Внимание! Сработал датчик протечки в ванной!"/>
        <param name="criteria" value="eq"/>
        <param name="notification_value" value="False"/>
        <param name="notification_target" value="log,voice,mail,sms"/>
    </node>
    <node name="humidity_low_notif" pkg="smart_home_sensors" type="sensor_notifier_node.py">
        <param name="sensor_topic" value="/avr_humidity"/>
        <param name="criteria" value="lt"/>
        <param name="notification_value" value="35"/>
        <param name="notification_level" value="1"/>
        <param name="notification_target" value="log,voice"/>
        <param name="notification_text" value="Низкая влажность воздуха! %value% процентов"/>
        <param name="interval" value="3600"/>
    </node>
    <node name="humidity_hi_notif" pkg="smart_home_sensors" type="sensor_notifier_node.py">
        <param name="sensor_topic" value="/avr_humidity"/>
        <param name="criteria" value="gt"/>
        <param name="notification_level" value="1"/>
        <param name="notification_value" value="65"/>
        <param name="notification_target" value="log,voice"/>
        <param name="notification_text" value="Высокая влажность воздуха! %value% процентов"/>
        <param name="interval" value="3600"/>
    </node>
<!--
    <node name="webcam" pkg="usb_cam" type="usb_cam_node">
        <param name="pixel_format" value="yuyv"/>
        <param name="image_width" value="320"/>
        <param name="image_height" value="240"/>
    </node>
    <node name="mjpeg_server" pkg="mjpeg_server" type="mjpeg_server"/>
    -->
</launch>

@dirk-thomas dirk-thomas added the bug label Jul 3, 2014
@dirk-thomas dirk-thomas self-assigned this Jul 3, 2014
rsinnet pushed a commit to MisoRobotics/ros_comm that referenced this issue Jun 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants