Closed rahulswa08 closed 1 year ago
Hi! What is the output log of the Agent?
Hi @Acuadros95 ,
This is the output of ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0 -b 115200
Output:
[1688999708.765105] info | TermiosAgentLinux.cpp | init | running... | fd: 3
[1688999708.765309] info | Root.cpp | set_verbose_level | logger setup | verbose_level: 4
[1688999709.270147] info | Root.cpp | create_client | create | client_key: 0x39BF781D, session_id: 0x81
[1688999709.270282] info | SessionManager.hpp | establish_session | session established | client_key: 0x39BF781D, address: 0
[1688999709.288886] info | ProxyClient.cpp | create_participant | participant created | client_key: 0x39BF781D, participant_id: 0x000(1)
[1688999709.298349] info | ProxyClient.cpp | create_replier | replier created | client_key: 0x39BF781D, requester_id: 0x000(7), participant_id: 0x000(1)
[1688999709.309261] info | ProxyClient.cpp | create_replier | replier created | client_key: 0x39BF781D, requester_id: 0x001(7), participant_id: 0x000(1)
[1688999709.318876] info | ProxyClient.cpp | create_replier | replier created | client_key: 0x39BF781D, requester_id: 0x002(7), participant_id: 0x000(1)
[1688999709.328949] info | ProxyClient.cpp | create_replier | replier created | client_key: 0x39BF781D, requester_id: 0x003(7), participant_id: 0x000(1)
[1688999709.339673] info | ProxyClient.cpp | create_replier | replier created | client_key: 0x39BF781D, requester_id: 0x004(7), participant_id: 0x000(1)
[1688999709.344919] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x39BF781D, topic_id: 0x000(2), participant_id: 0x000(1)
[1688999709.347345] info | ProxyClient.cpp | create_publisher | publisher created | client_key: 0x39BF781D, publisher_id: 0x000(3), participant_id: 0x000(1)
[1688999709.350572] info | ProxyClient.cpp | create_datawriter | datawriter created | client_key: 0x39BF781D, datawriter_id: 0x000(5), publisher_id: 0x000(3)
ROS2 Galactic
Are you using Fast-DDS as your ROS 2 middleware?
Galactic uses cyclone dds as its default middleware, which does not offer full compatibility with micro-ROS. Also, notice that micro-ROS galactic and foxy versions are deprecated, as their ROS 2 versions are also deprecated.
Thanks @Acuadros95 ,
That worked like magic. I was using Cyclonedds and as I changed to Fastdds it started working.
Would you suggest to change ROS version? If yes which version would be better? I'm currenly using Ubuntu 20.04
Would you suggest to change ROS version? If yes which version would be better? I'm currenly using Ubuntu 20.04
I think you are good for now, foxy just enter its end of life status a few months ago. On the long term you should think about moving to Humble if possible, as it will be supported until 2027 (detail)
Closing!
Issue template
Steps to reproduce the issue
Replace
pico_micro_ros_example.c
with the following and build the code. Dump the uf2 to pico and start the ros2 agent.Expected behavior
When I run
ros2 param list
in agent side. I was expecting list of parameter.Actual behavior
But I received
Exception while calling service of node '/demo_param_node': None
Not sure why is this happening. @pablogs9 could you takelook into this.
Additional information
Also changed the
colcon.meta
file according to requirements mentioned in micro_ros_parameters tutorial : link