Comments (5)
Can you share the output of the agent with the -v6
flag?
Also, can you share the output of the ESP32 given with idf.py monitor
?
from micro_ros_espidf_component.
i got the same configuration (esp32, with the micro_ros_espidf_component, and a fresh source compiled microros agent on foxy.
the agent running
the first microros connection, stopped the agent ?
here is the logs in -v6
[nix-shell:~/ros-nix/dev-ws-ros2]$ ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888 -v6
[1640456550.953239] info | UDPv4AgentLinux.cpp | init | running... | port: 8888
[1640456550.953363] info | Root.cpp | set_verbose_level | logger setup | verbose_level: 6
[1640456556.823682] debug | UDPv4AgentLinux.cpp | recv_message | [==>> UDP <<==] | client_key: 0x00000000, len: 24, data:
0000: 80 00 00 00 00 01 10 00 58 52 43 45 01 00 01 0F 7A D8 DD 56 81 00 FC 01
[1640456556.823763] debug | UDPv4AgentLinux.cpp | recv_message | [==>> UDP <<==] | client_key: 0x00000000, len: 24, data:
0000: 80 00 00 00 00 01 10 00 58 52 43 45 01 00 01 0F 7A D8 DD 56 81 00 FC 01
[1640456556.823888] info | Root.cpp | create_client | create | client_key: 0x7AD8DD56, session_id: 0x81
[1640456556.823956] info | SessionManager.hpp | establish_session | session established | client_key: 0x7AD8DD56, address: 192.168.1.23:37062
[1640456556.823994] info | SessionManager.hpp | establish_session | session re-established | client_key: 0x7AD8DD56, address: 192.168.1.23:37062
[1640456556.824104] debug | UDPv4AgentLinux.cpp | send_message | [** <<UDP>> **] | client_key: 0x7AD8DD56, len: 19, data:
0000: 81 00 00 00 04 01 0B 00 00 00 58 52 43 45 01 00 01 0F 00
[1640456556.824174] debug | UDPv4AgentLinux.cpp | send_message | [** <<UDP>> **] | client_key: 0x7AD8DD56, len: 19, data:
0000: 81 00 00 00 04 01 0B 00 00 00 58 52 43 45 01 00 01 0F 00
[1640456556.833159] debug | UDPv4AgentLinux.cpp | recv_message | [==>> UDP <<==] | client_key: 0x7AD8DD56, len: 40, data:
0000: 81 80 00 00 01 07 20 00 00 0A 00 01 01 03 00 00 12 00 00 00 00 01 00 00 0A 00 00 00 61 72 6D 5F
0020: 72 6F 62 6F 74 00 00 00
[1640456556.835062] debug | UDPv4AgentLinux.cpp | recv_message | [==>> UDP <<==] | client_key: 0x7AD8DD56, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 00 00 80
[1640456556.835094] debug | UDPv4AgentLinux.cpp | recv_message | [==>> UDP <<==] | client_key: 0x7AD8DD56, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 00 00 80
[1640456556.837678] debug | UDPv4AgentLinux.cpp | recv_message | [==>> UDP <<==] | client_key: 0x7AD8DD56, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 00 00 80
[1640456556.837713] debug | UDPv4AgentLinux.cpp | recv_message | [==>> UDP <<==] | client_key: 0x7AD8DD56, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 00 00 80
on the ESP side,
I (617) wifi:Init static rx buffer size: 1600
I (617) wifi:Init static rx buffer num: 10
I (627) wifi:Init dynamic rx buffer num: 32
I (627) wifi_init: rx ba win: 6
I (637) wifi_init: tcpip mbox: 32
I (637) wifi_init: udp mbox: 6
I (637) wifi_init: tcp mbox: 6
I (647) wifi_init: tcp tx win: 5744
I (647) wifi_init: tcp rx win: 5744
I (657) wifi_init: tcp mss: 1440
I (657) wifi_init: WiFi IRAM OP enabled
I (657) wifi_init: WiFi RX IRAM OP enabled
I (667) phy_init: phy_version 4660,0162888,Dec 23 2020
I (767) wifi:mode : sta (24:6f:28:85:cc:08)
I (767) wifi_station_netif: wifi_init_sta finished.
I (777) wifi:new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1
I (777) wifi:state: init -> auth (b0)
I (787) wifi:state: auth -> assoc (0)
I (797) wifi:state: assoc -> run (10)
I (847) wifi:connected with Livebox-9680, aid = 2, channel 1, BW20, bssid = 18:82:8c:0c:96:80
I (847) wifi:security: WPA2-PSK, phy: bgn, rssi: -67
I (847) wifi:pm start, type: 1
I (947) wifi:AP's beacon interval = 102400 us, DTIM period = 3
I (1567) esp_netif_handlers: sta ip: 192.168.1.23, mask: 255.255.255.0, gw: 192.168.1.1
I (1567) wifi_station_netif: got ip:192.168.1.23
I (1567) wifi_station_netif: connected to ap SSID:Livebox-9680 password:XXXXXXXXXX
Executing on core 1
I (1587) PCA9685: Freq 50Hz, real 50
In task, init the allocator and stack
micro-ROS transport: connected using UDP mode, ip: '192.168.1.19', port: '8888'
create node
Failed status on line 259: 1. Aborting.
line 259, correspond to π
printf("Executing on core %d\n", xPortGetCoreID());
i2c_example_master_init();
printf("In task, init the allocator and stack\n");
rcl_allocator_t allocator = rcl_get_default_allocator();
rclc_support_t support;
// Create init_options.
rcl_init_options_t init_options = rcl_get_zero_initialized_init_options();
RCCHECK(rcl_init_options_init(&init_options, allocator));
rmw_init_options_t *rmw_options = rcl_init_options_get_rmw_init_options(&init_options);
// Use static agent IP and port.
RCCHECK(rmw_uros_options_set_udp_address(CONFIG_MICRO_ROS_AGENT_IP, CONFIG_MICRO_ROS_AGENT_PORT, rmw_options));
// Setup support structure.
RCCHECK(rclc_support_init_with_options(&support, 0, NULL, &init_options, &allocator));
// Create node.
printf("create node\n");
rcl_node_t node = rcl_get_zero_initialized_node();
THIS LINE >>>>>> RCCHECK(rclc_node_init_default(&node, "arm_robot", "", &support));
from micro_ros_espidf_component.
If you use micro-ROS agent docker for galactic it works but with foxy no? have I understood correctly?
from micro_ros_espidf_component.
Any update on this?
from micro_ros_espidf_component.
Thank you for the follow up @pablogs9 , i don't know for the original author, on my side, i switched to docker, for the microros agent, works fine . Will give it a try on galactic
from micro_ros_espidf_component.
Related Issues (20)
- Micro-ros Ping utility issue HOT 9
- Unable to build libmicroros.a correctly HOT 2
- microcdr C_STANDARD is set to invalid value '17' HOT 14
- Services getting random values from caller HOT 8
- Can't create subscriber on ESP32-C3 HOT 3
- An error is reported using the int32_publisher example βFailed status on line 54: 1. Aborting.β HOT 2
- ESP32 create subscriber for sensor_msgs/msg/Joy did not work HOT 2
- Size Limit on Sequence Type Members of Laser Scan Msg HOT 3
- app-colcon.meta vs colcon.meta HOT 3
- Adding a timeout parameter to rclc_support_init() HOT 3
- idf.py build failing in Ubuntu 20.04 HOT 2
- Cannot build int32_publisher_custom_transport with docker container HOT 5
- Communication between Micro-ROS Agent (@RPi 4B) and Client (@esp32-s3) is not established HOT 2
- ESP32 uROS ethernet netif bug
- vscode+espidf5.2 Could not complete HOT 3
- Issues compiling with W5500 enabled HOT 6
- idf.py menuconfig error related to xtensa-esp-elf tool HOT 6
- FreeRTOS tasks are not working HOT 2
- microxrcedds_client fails to build with -DUCLIENT_PROFILE_MULTITHREAD=ON HOT 3
- Small question regarding the microROS agent. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from micro_ros_espidf_component.