Skip to content
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

Error about micro_ros_subscriber_twist #1792

Open
drinkBr opened this issue Jun 20, 2024 · 1 comment
Open

Error about micro_ros_subscriber_twist #1792

drinkBr opened this issue Jun 20, 2024 · 1 comment

Comments

@drinkBr
Copy link

drinkBr commented Jun 20, 2024

Hi,
When I ran micro_ros_subscriber_twist.ino, I encountered the following error. Please advise.
In this case, 'String_sub.ino' is my file name.

C:\AppData\Local\Temp\arduino\sketches\B0E779D746D417ABD8374C376587FBDB\sketch\String_sub.ino.cpp.o: In function `set_microros_transports':
C:\Documents\Arduino\libraries\micro_ros_arduino\src/micro_ros_arduino.h:40: undefined reference to `rmw_uros_set_custom_transport'
C:\AppData\Local\Temp\arduino\sketches\B0E779D746D417ABD8374C376587FBDB\sketch\String_sub.ino.cpp.o: In function `setup':
F:\Arduino\String_sub/String_sub.ino:45: undefined reference to `rcutils_get_default_allocator'
F:\Arduino\String_sub/String_sub.ino:48: undefined reference to `rclc_support_init'
F:\Arduino\String_sub/String_sub.ino:51: undefined reference to `rclc_node_init_default'
F:\Arduino\String_sub/String_sub.ino:54: undefined reference to `rosidl_typesupport_c__get_message_type_support_handle__geometry_msgs__msg__Twist'
F:\Arduino\String_sub/String_sub.ino:54: undefined reference to `rclc_subscription_init_default'
F:\Arduino\String_sub/String_sub.ino:61: undefined reference to `rclc_executor_init'
F:\Arduino\String_sub/String_sub.ino:62: undefined reference to `rclc_executor_add_subscription'
C:~\AppData\Local\Temp\arduino\sketches\B0E779D746D417ABD8374C376587FBDB\sketch\String_sub.ino.cpp.o: In function `loop':
F:\Arduino\String_sub/String_sub.ino:68: undefined reference to `rclc_executor_spin_some'
collect2.exe: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1
@hippo5329
Copy link

Look like include/library issues.

You should use a native Ubuntu 22.04 PC instead of Windows PC. Use platformio/vscode, which is much better than Arduino IDE. Esp32 is a good micro-ros controller, which costs only 1/10 of an Arduino Due. If you want to build mobile robot, you may follow my wiki.

https://github.com/hippo5329/linorobot2_hardware/wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants