-
Notifications
You must be signed in to change notification settings - Fork 122
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
Esp32 does not create a parameter and action server #1762
Comments
I face the same issue with my ESP32. Have you found any solution to this problem? |
It was written in the beginning of README. "However, users can rebuild their own precompiled libraries in order to modify the micro-ROS configuration or RMW parameters by customizing the respective .meta file." You will need to customize middle ware configuration with custom meta. The default value is too low to run action server.
For arduino ide, you will need to regenerate the library. For platformio, https://github.com/micro-ROS/micro_ros_platformio?tab=readme-ov-file#other-configuration |
@hippo5329 do you know where to find a specification what the requirements are to create i.e. an action server / action clients etc ? |
The default micro-ROS middleware memory allocation is very limited because most micro-controllers have limited memory. Each ros2 action server needs three services. To run ros2 action servers, you will need to increase middle ware configuration with custom meta. Below is a sample meta as action.meta. You may add this with "board_microros_user_meta = action.meta" to board configuration in platformio.ini.
|
I added "meta", "add two int service demo" and "Fibonacci action servo demo" to my repo and wiki. You may try with an esp32 module. https://github.com/hippo5329/linorobot2_hardware/wiki#increase-middleware-memory-allocation |
Thanks for a comment @hippo5329 .but i change the colcon.meta data file but the esp32 does not create a action server and how to regenerate a library ? In above case i was first delete a library file and install a new micro_ros_arduino (humble ) zip file and make a changes in colcon.meta file then save it and upload a arduino ide.but the action server does not create so give me a some suggestion |
May I suggest platformio/vscode instead of arduino ide? The platformio/vscode is a lot better than the arduino ide. You may port the arduino project to platformio easily. I didn't use arduino ide for a while. |
Seriously, when you need custom meta and custom msgs (extra packages), you should switch to platformio. |
@hippo5329 Thank you for your help. I will try that. |
Issue template
i use in esp32 as a hardware upload a code with arduino ide and connect a micro_ros_agent via wifi transport.I successfully run a publisher and subscriber nodes and service nodes also but i cant to create a parameter and server in esp32.I have no idea about the error so please help anyone
source code and error is given below
above source code give a run time error
error : action did not create and error code of rcl_ret_t = 1
The text was updated successfully, but these errors were encountered: