micro-ROS / micro-ROS/micro_ros_espidf_component

Micro-ros Ping utility issue

Open
#206 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
419
Forks
124
Avg merge
21h 35m
Merged PRs (30d)
3

Description

## Issue template

- Hardware description: esp32s3 devkit
- RTOS: freertos
- Installation type: standard
- Version or commit hash: humble

#### Steps to reproduce the issue
try the rmw_uros_ping_agent() utility to see whether the Agent is up or not it does not require creating a micro-ros context first...

#### Expected behavior
When I turn the Agent on it should output as RMW_RET_OK else it should throw an error value

#### Actual behavior
![Screenshot from 2023-08-09 16-09-54](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/ac1e2193-43c4-4927-9c0c-f681a285b9f9)
There is a variable called agent_state_flag in the code which gives 0 when agent is off and 1 when agent is on...

![Screenshot from 2023-08-09 16-10-13](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/60684955-bf9f-4de2-9baa-81b71e0fbc0c)
Here I have not started the agent yet

![Screenshot from 2023-08-09 16-10-38](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/62f28cc3-e383-43f5-936d-d77f7e452fa5)
Here I have started the agent

![Screenshot from 2023-08-09 16-09-54](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/710b225b-0354-4988-a28c-41a3853e9596)
Still it the rmw_uros_ping_agent() is not giving me a RMW_RET_OK even when the agent is alive

#### Additional information
![Screenshot from 2023-08-09 16-11-22](https://github.com/micro-ROS/micro_ros_espidf_component/assets/132329071/ad886199-c477-4238-9400-a9a275d05b93)
The code snippet which I am using...

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

Start with the reported rmw_uros_ping_agent() entry point and reproduce the behavior on the ESP32-S3 with the Agent stopped and running. Compare its return value with the reported agent_state_flag values and the expected RMW_RET_OK result. Done means the utility reliably distinguishes an available Agent from an unavailable one.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.