micro-ROS / micro_ros_espidf_component

micro-ROS ESP32 IDF component and sample code
Apache License 2.0
247 stars 58 forks source link

Parameters issue #174

Closed ALUIS97 closed 1 year ago

ALUIS97 commented 1 year ago

Issue template

Steps to reproduce the issue

  1. Copy and paste the example parameters of this repository into the main of the project created for vs code esp idf extension

  2. change the following line of code highlighted in blue to a value of 10 because I didn't find the RCLC_PARAMETER_EXECUTOR_HANDLES_NUMBER image

  3. change colcon.meta to services 10 and rmw_microxrcedds/config.h service to 10

  4. set wifi port and agent ip correctly

  5. build and flash

  6. execute ros agent udp port 8888

  7. execute the ros2 param list

Expected behavior

To see param1,2 and 3 in the list

Actual behavior

I don't see my parameters on the list after executing the param list command or param get node_name param1 Captura de pantalla 2023-01-28 213936

But from the ros agent terminal, I see the ros agent is sending a message to the micro ros node but I don't have any response and from the topic created for this example we get image

parameter_verbose6.txt.txt

Additional information

I have increased my heap memory to 60 kbytes

I tried to follow the next issue https://github.com/micro-ROS/micro_ros_zephyr_module/issues/34 I tried to change my docker file image

But I don't know how to change the ros agent of the micro_ros_Setup repo.

I don't know if DDS is not allowing to receive things from parameters

Acuadros95 commented 1 year ago

change colcon.meta to services 10 and rmw_microxrcedds/config.h service to 10

Did you rebuild your micro-ROS library after this modification? rmw_microxrcedds/config.h should not be modified, please check that the generated config.h contains the expected number of services without manual modifications.

ALUIS97 commented 1 year ago

Did you rebuild your micro-ROS library after this modification? `

about this question I click here image and here image

I don't know if that is the process to rebuild de micro ros library

Acuadros95 commented 1 year ago

From the README:

To clean and rebuild all the micro-ROS library:

idf.py clean-microros

Anyway, We should update the repo documentation, as its not clearly stated or documented.

ALUIS97 commented 1 year ago

thanks well yes I agree with you I think there are a lot of things missing related to documentation, anyway with vs code extension I see libmicroros.a change image with the process I mentioned but I am gonna try the command you just send me

ALUIS97 commented 1 year ago

thank youuuu very much is working right now