Closed ken551 closed 4 years ago
Hi, @ken551
This is the result of a failure to create a data_writer and data_reader.
[ LOG ERROR #0001 ] [2020-07-24 00:22:24] [] {argument index out of range}
If you look at this error, it says that the argument is over length. Among the changes you made is the topic name, what did you change?
Please check if the same error message is displayed even with no modification.
@OpusK Hello, thank you for checking.
I changed the topic name from arduino_chatter
to chatter
.
The same error message also appears even when I don't change anything.
Also, I downgraded the ros2arduino to v1.4.0
and microXRCE to v1.1.0
, and both pub and sub work perfectly.
@ken551, Was your ROS2 dashing version patch6? MicroXRCE Agent depends on the version of ROS2 (the version of FastRTPS).
@OpusK
I checked the version with sudo apt-cache policy ros-dashing-desktop
(I've never tried this before... does this work properly?), and it said 0.7.3(2020512)
was installed.
So, I gonna downgrade my ROS2 dashing to version 0.6.*
and try again.
I'll comment here again when the situation changes. Thank you!
I checked the version with sudo apt-cache policy ros-dashing-desktop (I've never tried this before... does this work properly?), and it said 0.7.3(2020512) was installed.
I'm not sure because it's different from the patch version naming rules. However, unlike Patch6 was released in March, it is in May.
Anyway, thanks for sharing :) Feel free to open it again.
Hello.
I'm trying to execute
publisher_wifi_udp
example on my M5StickC & M5Stack, but it didn't work.I use:
I only changed the definitions of SSID, SSID_PW, AGENT_IP, and topic name, but even that it didn't work on my environment.
When I type
ros2 node list
on Ubuntu PC, the node on M5StickC appears. However, when I tryros2 topic list
, the topic doesn't.The log I got is as follows:
And, I found that the
uxr_run_sesson_until_one_status
method (session.c
L268) called fromnew ros2::Publisher...
(ros2.hpp
L68) doesn't seem to returntrue
, and thenp_pub
is deleted and nullptr is returned. I'm not sure what code is returned, but at leastp_pub->is_registered
returns false.Could you tell me if there's any solution to that? Thank you.