Closed b0toku closed 3 years ago
I have a couple of questions:
uxr_discovery_choose_ethernet
defined?Terminal in Ubuntu (talker program)
and Terminal in Ubuntu (Micro-XRCE-DDS-Agent)
Received topic: Hello world!0
right? Could you tell us what is your expected behavior?Thank you for your quick reply.
Yes, it's a right behavior. This is when I used programs for only a node -> a client. I just wondered it's easier to solve this problem if I post these programs. I'd like to know how I have to do to send message or number from 1 or 2 nodes(same PC) as below.
node1 -> client1(GR-ROSE1) node2 -> client2(GR-ROSE2) and node1 -> client1(GR-ROSE1) ↳ client2(GR-ROSE2)
I'd like to know both ways.
It might be very difficult to understand due to my bad explanation. Sorry.
Good morning,
Regarding this issue, I have several questions:
uxr_discovery_choose_ethernet
function comes from. I also see that you are working with a quite old version of the library, so that might be the key.-v6
option to see if entities are being correctly created?Thank you for your reply.
Does client ID mean client key? I gave unique keys and IP addresses to the each client and I checked if entities are being correctly created with -v6 option.
A terminal for Micro-XRCE-DDS-Agent is below.
bash: install/local_setup.bash: そのようなファイルやディレクトリはありません
b0toku@b0toku-System-Product-Name:~$ cd micro-XRCE-DDS-agent
b0toku@b0toku-System-Product-Name:~/micro-XRCE-DDS-agent$ cd build
b0toku@b0toku-System-Product-Name:~/micro-XRCE-DDS-agent/build$ LD_PRELOAD="/usr/local/lib/libfastrtps.so.1 /usr/local/lib/libfastcdr.so.1" MicroXRCEAgent tcp -p 2020 -v6 -d
Enter 'q' for exit
[1608605724.075252] info | TCPServerLinux.cpp | init | running... | port: 2020
[1608605724.075534] info | DiscoveryServerLinux.cpp | init | running... | Port: 7400
[1608605724.075597] info | Root.cpp | set_verbose_level | logger setup | verbose_level: 6
[1608605744.035440] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0x00000000, len: 24, data:
0000: 80 00 00 00 00 01 10 00 58 52 43 45 01 00 01 0F AA AA BB BB 81 00 FC 03
[1608605744.035564] info | Root.cpp | create_client | create | client_key: 0xAAAABBBB, session_id: 0x81
[1608605744.035619] info | TCPServerBase.cpp | on_create_client | session established | client_key: 0xAAAABBBB, address: 192.168.0.3:31363
[1608605744.035713] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 19, data:
0000: 81 00 00 00 04 01 0B 00 00 00 58 52 43 45 01 00 01 0F 00
[1608605744.036639] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 112, data:
0000: 81 01 00 00 01 05 68 00 00 0A 00 11 01 02 00 00 59 00 00 00 3C 64 64 73 3E 3C 70 61 72 74 69 63
0020: 69 70 61 6E 74 3E 3C 72 74 70 73 3E 3C 6E 61 6D 65 3E 64 65 66 61 75 6C 74 5F 78 72 63 65 5F 70
0040: 61 72 74 69 63 69 70 61 6E 74 3C 2F 6E 61 6D 65 3E 3C 2F 72 74 70 73 3E 3C 2F 70 61 72 74 69 63
0060: 69 70 61 6E 74 3E 3C 2F 64 64 73 3E 00 00 00 00
[1608605744.036708] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 124, data:
0000: 81 01 01 00 01 05 71 00 00 0B 00 12 02 02 00 00 63 00 00 00 3C 64 64 73 3E 3C 74 6F 70 69 63 3E
0020: 3C 6E 61 6D 65 3E 72 74 2F 63 68 61 74 74 65 72 3C 2F 6E 61 6D 65 3E 3C 64 61 74 61 54 79 70 65
0040: 3E 73 74 64 5F 6D 73 67 73 3A 3A 6D 73 67 3A 3A 64 64 73 5F 3A 3A 53 74 72 69 6E 67 5F 3C 2F 64
0060: 61 74 61 54 79 70 65 3E 3C 2F 74 6F 70 69 63 3E 3C 2F 64 64 73 3E 00 00 11 00 00 00
[1608605744.036805] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 24, data:
0000: 81 01 02 00 01 05 0F 00 00 0C 00 14 04 02 00 00 01 00 00 00 00 00 11 73
[1608605744.036845] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 168, data:
0000: 81 01 03 00 01 05 9F 00 00 0D 00 16 06 02 00 00 91 00 00 00 3C 64 64 73 3E 3C 64 61 74 61 5F 72
0020: 65 61 64 65 72 3E 3C 74 6F 70 69 63 3E 3C 6B 69 6E 64 3E 4E 4F 5F 4B 45 59 3C 2F 6B 69 6E 64 3E
0040: 3C 6E 61 6D 65 3E 72 74 2F 63 68 61 74 74 65 72 3C 2F 6E 61 6D 65 3E 3C 64 61 74 61 54 79 70 65
0060: 3E 73 74 64 5F 6D 73 67 73 3A 3A 6D 73 67 3A 3A 64 64 73 5F 3A 3A 53 74 72 69 6E 67 5F 3C 2F 64
0080: 61 74 61 54 79 70 65 3E 3C 2F 74 6F 70 69 63 3E 3C 2F 64 61 74 61 5F 72 65 61 64 65 72 3E 3C 2F
00A0: 64 64 73 3E 00 00 14 00
[1608605744.037033] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 24, data:
0000: 81 01 04 00 08 01 10 00 00 0E 00 16 01 00 00 01 FF FF 00 00 00 00 00 00
[1608605744.040228] debug | ProxyClient.cpp | create_participant | participant created | client_key: 0xAAAABBBB, participant_id: 0x001(1)
[1608605744.040388] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 14, data:
0000: 81 80 00 00 05 01 06 00 00 0A 00 11 00 00
[1608605744.040491] debug | ProxyClient.cpp | create_topic | topic created | client_key: 0xAAAABBBB, topic_id: 0x001(2), participant_id: 0x001(1)
[1608605744.040543] debug | ProxyClient.cpp | create_subscriber | subscriber created | client_key: 0xAAAABBBB, subscriber_id: 0x001(4), participant_id: 0x001(1)
[1608605744.040582] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 14, data:
0000: 81 80 01 00 05 01 06 00 00 0B 00 12 00 00
[1608605744.040625] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 14, data:
0000: 81 80 02 00 05 01 06 00 00 0C 00 14 00 00
[1608605744.040795] debug | ProxyClient.cpp | create_datareader | datareader created | client_key: 0xAAAABBBB, datareader_id: 0x001(6), subscriber_id: 0x001(4)
[1608605744.040853] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 14, data:
0000: 81 80 03 00 05 01 06 00 00 0D 00 16 00 00
[1608605744.041245] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 13, data:
0000: 81 00 00 00 0A 01 05 00 00 00 00 00 80
[1608605744.041681] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 13, data:
0000: 81 00 00 00 0A 01 05 00 00 00 00 00 80
[1608605744.041918] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 13, data:
0000: 81 00 00 00 0A 01 05 00 00 00 00 00 80
[1608605744.042178] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xAAAABBBB, len: 13, data:
0000: 81 00 00 00 0A 01 05 00 00 00 00 00 80
[1608605744.146362] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0x00000000, len: 24, data:
0000: 80 00 00 00 00 01 10 00 58 52 43 45 01 00 01 0F CC CC DD DD 81 00 FC 03
[1608605744.146464] info | Root.cpp | create_client | create | client_key: 0xCCCCDDDD, session_id: 0x81
[1608605744.146504] info | TCPServerBase.cpp | on_create_client | session established | client_key: 0xCCCCDDDD, address: 192.168.0.5:23044
[1608605744.146618] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 19, data:
0000: 81 00 00 00 04 01 0B 00 00 00 58 52 43 45 01 00 01 0F 00
[1608605744.147492] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 112, data:
0000: 81 01 00 00 01 05 68 00 00 0A 00 11 01 02 00 00 59 00 00 00 3C 64 64 73 3E 3C 70 61 72 74 69 63
0020: 69 70 61 6E 74 3E 3C 72 74 70 73 3E 3C 6E 61 6D 65 3E 64 65 66 61 75 6C 74 5F 78 72 63 65 5F 70
0040: 61 72 74 69 63 69 70 61 6E 74 3C 2F 6E 61 6D 65 3E 3C 2F 72 74 70 73 3E 3C 2F 70 61 72 74 69 63
0060: 69 70 61 6E 74 3E 3C 2F 64 64 73 3E 00 00 00 00
[1608605744.147556] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 124, data:
0000: 81 01 01 00 01 05 71 00 00 0B 00 12 02 02 00 00 63 00 00 00 3C 64 64 73 3E 3C 74 6F 70 69 63 3E
0020: 3C 6E 61 6D 65 3E 72 74 2F 63 68 61 74 74 65 72 3C 2F 6E 61 6D 65 3E 3C 64 61 74 61 54 79 70 65
0040: 3E 73 74 64 5F 6D 73 67 73 3A 3A 6D 73 67 3A 3A 64 64 73 5F 3A 3A 53 74 72 69 6E 67 5F 3C 2F 64
0060: 61 74 61 54 79 70 65 3E 3C 2F 74 6F 70 69 63 3E 3C 2F 64 64 73 3E 00 00 11 00 00 00
[1608605744.147664] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 24, data:
0000: 81 01 02 00 01 05 0F 00 00 0C 00 14 04 02 00 00 01 00 00 00 00 00 11 73
[1608605744.147693] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 168, data:
0000: 81 01 03 00 01 05 9F 00 00 0D 00 16 06 02 00 00 91 00 00 00 3C 64 64 73 3E 3C 64 61 74 61 5F 72
0020: 65 61 64 65 72 3E 3C 74 6F 70 69 63 3E 3C 6B 69 6E 64 3E 4E 4F 5F 4B 45 59 3C 2F 6B 69 6E 64 3E
0040: 3C 6E 61 6D 65 3E 72 74 2F 63 68 61 74 74 65 72 3C 2F 6E 61 6D 65 3E 3C 64 61 74 61 54 79 70 65
0060: 3E 73 74 64 5F 6D 73 67 73 3A 3A 6D 73 67 3A 3A 64 64 73 5F 3A 3A 53 74 72 69 6E 67 5F 3C 2F 64
0080: 61 74 61 54 79 70 65 3E 3C 2F 74 6F 70 69 63 3E 3C 2F 64 61 74 61 5F 72 65 61 64 65 72 3E 3C 2F
00A0: 64 64 73 3E 00 00 14 00
[1608605744.147919] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 24, data:
0000: 81 01 04 00 08 01 10 00 00 0E 00 16 01 00 00 01 FF FF 00 00 00 00 00 00
[1608605744.150286] debug | ProxyClient.cpp | create_participant | participant created | client_key: 0xCCCCDDDD, participant_id: 0x001(1)
[1608605744.150364] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 14, data:
0000: 81 80 00 00 05 01 06 00 00 0A 00 11 00 00
[1608605744.150476] debug | ProxyClient.cpp | create_topic | topic created | client_key: 0xCCCCDDDD, topic_id: 0x001(2), participant_id: 0x001(1)
[1608605744.150533] debug | ProxyClient.cpp | create_subscriber | subscriber created | client_key: 0xCCCCDDDD, subscriber_id: 0x001(4), participant_id: 0x001(1)
[1608605744.150556] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 14, data:
0000: 81 80 01 00 05 01 06 00 00 0B 00 12 00 00
[1608605744.150590] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 14, data:
0000: 81 80 02 00 05 01 06 00 00 0C 00 14 00 00
[1608605744.150883] debug | ProxyClient.cpp | create_datareader | datareader created | client_key: 0xCCCCDDDD, datareader_id: 0x001(6), subscriber_id: 0x001(4)
[1608605744.150922] trace | FastEntities.cpp | onParticipantDiscovery | matched | entity_id: 0.0.1.c1, guid_prefix: 1.f.50.a.1d.7b.0.0.1.0.0.0
[1608605744.150943] trace | FastEntities.cpp | onParticipantDiscovery | matched | entity_id: 0.0.1.c1, guid_prefix: 1.f.50.a.1d.7b.0.0.2.0.0.0
[1608605744.150992] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 14, data:
0000: 81 80 03 00 05 01 06 00 00 0D 00 16 00 00
[1608605744.151212] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 13, data:
0000: 81 00 00 00 0A 01 05 00 00 00 00 00 80
[1608605744.215455] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 13, data:
0000: 81 00 00 00 0A 01 05 00 00 00 00 00 80
[1608605744.215521] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 13, data:
0000: 81 00 00 00 0A 01 05 00 00 00 00 00 80
[1608605744.216153] debug | TCPServerLinux.cpp | recv_message | [==>> TCP <<==] | client_key: 0xCCCCDDDD, len: 13, data:
0000: 81 00 00 00 0A 01 05 00 00 00 00 00 80
[1608605744.283964] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 03 00 80
[1608605744.284006] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 03 00 80
[1608605744.484020] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 03 00 80
[1608605744.484078] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 03 00 80
[1608605744.684103] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 03 00 80
[1608605744.684164] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 03 00 80
[1608605744.884200] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xAAAABBBB, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 03 00 80
[1608605744.884263] debug | TCPServerLinux.cpp | send_message | [** <<TCP>> **] | client_key: 0xCCCCDDDD, len: 13, data:
0000: 81 00 00 00 0B 01 05 00 00 00 03 00 80
Hello @b0toku, yes, client ID means client key.
We are not sure about what is your issue or your question. Could you explain your problem more clearly?
Closing due to inactivity
I'd like to connect 2 or 3 clients(GR-ROSE) from an agent and send from some nodes to some clients as below. node1 -> client1 (GR-ROSE1) node2 -> client2 (GR-ROSE2)
I can't find how I should do for this. Could someone tell me how I can do?
My environment is below.
Environment OS: Ubuntu18.04.5 LTS ROS2: Dashing Diademata Micro-XRCE-DDS-Agent: v1.1.0
Please have a look if you need to check programs below. These are programs (ROS2 side(talker), client (GR-ROSE) side(listener)), two terminals (Micro-XRCE-DDS-Agent, talker program) in Ubuntu, Serial monitor of client(GR-ROSE). These are to send from a node to a client(GR-ROSE).
Program (ROS2 side(talker))
Program (client (GR-ROSE) side(listener))
Terminal in Ubuntu (Micro-XRCE-DDS-Agent)
Terminal in Ubuntu (talker program) bash: install/local_setup.bash: そのようなファイルやディレクトリはありません b0toku@b0toku-System-Product-Name:~$ . ~/ros2/install/setup.bash b0toku@b0toku-System-Product-Name:~$ ros2 run hello_world talker [INFO] [talker]: Hello world!0 [INFO] [talker]: Hello world!1 [INFO] [talker]: Hello world!2 [INFO] [talker]: Hello world!3 [INFO] [talker]: Hello world!4 [INFO] [talker]: Hello world!5
Serial monitor of client(GR-ROSE)