ros2arduino
ros2arduino copied to clipboard
How to find the Agent_IP_Adress
For the publisher_wifi_udp.ino sketch
How do i find the agent address ? #define AGENT_IP "AGENT_IP_ADDRESS"
Is it the address of the Host computer running the agent ? (Note that ROS2 and the agent are in a docker)
Additionnal questions I have used publisher_wifi_udp.ino sketch with a esp32, is it supposed to work. After i have started the agent and received a feed back that look good Press CTRL+C to exit [1608501506.414674] info | UDPv4AgentLinux.cpp | init | running... | port: 2018
ROS2 topic list does not give /arduino_chatter_chatter as a topic
ROS2 echo /arduino_chatter gave Could not determine the type for the passed topic
ROS2 node list is empty
Other problems I have resinstalled the hole thing localy on my machine in order to test the serial option with tty/USB0 used in my machine. I have the same result bad results
An other thing
After the agent installation setup, i can only run ./MicroXRCEAgent ..... with the console that i used to make the installation
( when a close the console and try to run in a new console i get the bash: ./MicroXRCEAgent: No such file or directory)
I also had this problem with the docker
The AGENT_IP address is the IP of the machine that is running the MicroXRCEAgent service. When the esp32 has made a connection to ros2 you should see an output similar to the following lines.
[1614605288.607592] info | UDPv4AgentLinux.cpp | init | running... | port: 2018 [1614605331.310721] info | Root.cpp | create_client | create | client_key: 0xAABBCCDD, session_id: 0x81 [1614605331.310796] info | SessionManager.hpp | establish_session | session established | client_key: 0x2864434397, address: "IP address of your esp32":47138