micro-ROS / micro-ROS/micro_ros_arduino

"Subscriber error : Deserialization of data failed -> function deserialize_change" error on the output

Open
#1,628 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
576
Forks
146
PR merge metrics
No merged PRs in 30d

Description

- Hardware description: Arduino Portenta H7
- Version or commit hash: foxy

#### Steps to reproduce the issue

When I compile the code on the arduino IDE and upload it to the Arduino h7 board everything works fine and the publisher and suscriber show up. *(Unlike with the **ros2arduino** package where there is no publisher showing up, I don't know if there is a fix yet or not)*
The next thing is to run the micro_ros agent and then echo the topic !
I get the data I need (distance to obstacle using three ultrasonic sensors), but from time to time I get this error **`Subscriber error : Deserialization of data failed -> function deserialize_change`**

And I don't know why I get it. I looked up everywhere I could but did not find a fix for it ! Any suggestions are welcome !

#### Additional information

[Code.txt](https://github.com/micro-ROS/micro_ros_arduino/files/13861777/Code.txt)

![Screenshot from 2024-01-08 15-02-52](https://github.com/micro-ROS/micro_ros_arduino/assets/115218309/cb3db53b-7aff-4aa9-8433-ce4cf34fb340)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin with the attached Code.txt and the Arduino IDE upload path, then compare behavior while running the micro-ROS agent and echoing the topic. Reproduce the intermittent deserialize_change error and document the conditions that trigger it; done means the failure is explained and a verified fix or precise reproduction is recorded.

Written by the indexing model from the issue text.

Assessment

Tech stack
arduino, c
Domain
embedded-iot, robotics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.