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

Weighing scale message parsing occasionally runs into an error while starting #3

Open
mohith-sakthivel opened this issue Apr 16, 2022 · 0 comments

Comments

@mohith-sakthivel
Copy link
Collaborator

mohith-sakthivel commented Apr 16, 2022

mohith@mohith-XPS-15:~/Documents/repos/ros-ws/ur5e_ws$ roslaunch sensor_interface start_sensors.launch 
... logging to /home/mohith/.ros/log/be8add16-bd26-11ec-ae28-1d27809b52ef/roslaunch-mohith-XPS-15-228117.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://mohith-XPS-15:46205/

SUMMARY
========

PARAMETERS
 * /cooking_pot/device: /dev/ttyUSB0
 * /rosdistro: noetic
 * /rosversion: 1.15.14

NODES
  /cooking_pot/
    force_torque_publisher (sensor_interface/force_torque_publish.py)
    weighing_scale (sensor_interface/weighing_scale.py)

ROS_MASTER_URI=http://localhost:11311

process[cooking_pot/weighing_scale-1]: started with pid [228135]
process[cooking_pot/force_torque_publisher-2]: started with pid [228136]
Traceback (most recent call last):
  File "/home/mohith/Documents/repos/ros-ws/ur5e_ws/src/sensor_interface/scripts/weighing_scale.py", line 41, in <module>
    read_weight(device=rospy.get_param('device'))
  File "/home/mohith/Documents/repos/ros-ws/ur5e_ws/src/sensor_interface/scripts/weighing_scale.py", line 18, in read_weight
    data = line.decode("utf-8")
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x81 in position 0: invalid start byte
[cooking_pot/weighing_scale-1] process has died [pid 228135, exit code 1, cmd /home/mohith/Documents/repos/ros-ws/ur5e_ws/src/sensor_interface/scripts/weighing_scale.py __name:=weighing_scale __log:=/home/mohith/.ros/log/be8add16-bd26-11ec-ae28-1d27809b52ef/cooking_pot-weighing_scale-1.log].
log file: /home/mohith/.ros/log/be8add16-bd26-11ec-ae28-1d27809b52ef/cooking_pot-weighing_scale-1*.log

Sometimes when the weighing scale is started, it runs into this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant