ROBOTIS-GIT / ros2arduino

This library helps the Arduino board communicate with the ROS2 using XRCE-DDS.
Apache License 2.0
207 stars 45 forks source link

Arduino UNO compiling issue #72

Open leonicode opened 1 year ago

leonicode commented 1 year ago

Hi to all, I installed the library 0.2.1 in my Arduino IDE 2.0.0 but I've a message error when I verify the publisher.ino sketch:

xrce_types.h:819:55: error: size of array 'data' is too large PackedSamples data[UXR_PACKED_SAMPLES_SEQUENCE_MAX];

Is this library compatible with Arduino UNO (it has 32kb of RAM) ? Thanks Leonard

gyiptgyipt commented 9 months ago

I have same issues with this arduino uno. please let me know if you solved this problem. Thank.

rehmanazeem commented 8 months ago

Has somebody found a solution to this issue? I am facing the same compiling error on Arduino Uno. Any leads would be helpful. TIA

gyiptgyipt commented 8 months ago

I used micro_ros_arduino library instead of ros2arduino because micro_ros_arduino have a lot of community and example guides. I recommend to use micro_ros_arduino.

jackhou66 commented 3 months ago

me encounter the same problem

jackhou66 commented 3 months ago

I used micro_ros_arduino library instead of ros2arduino because micro_ros_arduino have a lot of community and example guides. I recommend to use micro_ros_arduino.

so ,you use micro_ros_arduino on your arduino uno board?

gyiptgyipt commented 3 months ago

my apologies, I didn't see the uno board. Can't use micro_ros_arduino in uno board.It have to have SOC chip to use micro_ros_arduino.

jackhou66 commented 3 months ago

It seems can not support uno r3 . It has definite kinds of board.

在 2024年3月17日週日 16:57,Zyme @.***> 寫道:

my apologies, I didn't see the uno board. Can't use micro_ros_arduino in uno board.It have to have SOC chip to use micro_ros_arduino.

— Reply to this email directly, view it on GitHub https://github.com/ROBOTIS-GIT/ros2arduino/issues/72#issuecomment-2002499324, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEGPVJ7MUKUUEXHU5VFLD33YYWVNTAVCNFSM6AAAAAARSJ7LWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBSGQ4TSMZSGQ . You are receiving this because you commented.Message ID: @.***>

duy621 commented 3 months ago

Did anyone solved this problem ? Now I face the same problem, are there any leads for this ? TIA

jackhou66 commented 3 months ago

Which type of device. And which mediaware you use?

在 2024年4月4日週四 11:52,duy621 @.***> 寫道:

Did anyone solved this problem ? Now I face the same problem, are there any leads for this ? TIA

— Reply to this email directly, view it on GitHub https://github.com/ROBOTIS-GIT/ros2arduino/issues/72#issuecomment-2036577232, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEGPVJ4VQ4TH4NWRJSSKGTLY3UIGBAVCNFSM6AAAAAARSJ7LWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWGU3TOMRTGI . You are receiving this because you commented.Message ID: @.***>

duy621 commented 3 months ago

@jackhou66 I used the arduino UNO with the arduino IDE 2. I want to create a subscriber node in arduino sketch to subscribe to a message (float32 data type) from a ros2 node. Now I kinda stuck at this point with this compilation error now.

jackhou66 commented 3 months ago

Uno version is 3?haven't WIFI?

在 2024年4月4日週四 12:01,duy621 @.***> 寫道:

@jackhou66 https://github.com/jackhou66 I used the arduino UNO with the arduino IDE 2. I want to create a subscriber node in arduino sketch to subscribe to a message (float32 data type) from a ros2 node. Now I kinda stuck at this point with this compilation error now.

— Reply to this email directly, view it on GitHub https://github.com/ROBOTIS-GIT/ros2arduino/issues/72#issuecomment-2036594572, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEGPVJYCGTPM5JRCCCQHSCTY3UJGNAVCNFSM6AAAAAARSJ7LWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWGU4TINJXGI . You are receiving this because you were mentioned.Message ID: @.***>

duy621 commented 3 months ago

@jackhou66 It is the UNO R3, without WIFI

jackhou66 commented 3 months ago

not supported device, ,,, you can check the supported list on their website ..

duy621 @.***> 于2024年4月4日周四 12:08写道:

@jackhou66 https://github.com/jackhou66 It is the UNO R3, without WIFI

— Reply to this email directly, view it on GitHub https://github.com/ROBOTIS-GIT/ros2arduino/issues/72#issuecomment-2036611901, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEGPVJ2NSOASJYYD7T5I6TLY3UKB3AVCNFSM6AAAAAARSJ7LWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZWGYYTCOJQGE . You are receiving this because you were mentioned.Message ID: @.***>

duy621 commented 3 months ago

@jackhou66 thanks for letting me know. But however I find it weird as I found on the ros2arduino documentation that they state: "This library is compatible with all architectures so you should be able to use it on all the Arduino boards." :D But anyway I might have to change solution tho

moun20 commented 1 month ago

@jackhou66 hi .. I am working with the ros2 humble and arduino uno R3 my question is . have you successfully communicate ros2 with arduino uno using ros2arduino let me Know plz .. and if you are funding another solution too .. thanks

duy621 commented 1 month ago

@moun20 i have tried and I can confirm that it would not work with ros2 humble and arduino. The arduino board R3 is simply not powerful enough in terms of resource to support for the ROS data communication. I am currently on the same project with ROS and Arduino, my advice is to go for another microcontroller board with more powerful hardware (STM32 for example) If you still want to use arduino R3, go back to use ros1 Noetic. That is what im currently using in my project with arduino R3. Note that with only 2kg of SRAM might limit you on having global variables and transferring ros messages KG

jackhou66 commented 1 month ago

You can try esp32 as Middleware between jetson nano and arduino

在 2024年5月19日週日 21:25,duy621 @.***> 寫道:

@moun20 https://github.com/moun20 i have tried and I can confirm that it would not work with ros2 humble and arduino. The arduino board R3 is simply not powerful enough in terms of reaource to support for the ROS data communication. I am currently on the same project with ROS and Arduino, my advice is to go for another microcontroller board with more powerful hardware (STM32 for example) If you still want to use arduino R3, go back to use ros1 Noetic. That is what im currently using in my project with arduino R3. Note that with only 2kg of SRAM might limit you on having global variables and transferring ros messages KG

— Reply to this email directly, view it on GitHub https://github.com/ROBOTIS-GIT/ros2arduino/issues/72#issuecomment-2119321590, or unsubscribe https://github.com/notifications/unsubscribe-auth/BEGPVJ3PG46KM5SEWFEENVDZDDVABAVCNFSM6AAAAAARSJ7LWWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJZGMZDCNJZGA . You are receiving this because you were mentioned.Message ID: @.***>