linorobot / linorobot2_hardware

Apache License 2.0
92 stars 84 forks source link

no new topics #71

Closed The-Kriz closed 8 months ago

The-Kriz commented 8 months ago

Terminal 1

~/microros_ws$ ros2 run micro_ros_agent micro_ros_agent serial --dev /dev/ttyACM0 [1698585567.756947] info | TermiosAgentLinux.cpp | init | running... | fd: 3 [1698585567.757113] info | Root.cpp | set_verbose_level | logger setup | verbose_level: 4 [1698585568.287658] info | Root.cpp | create_client | create | client_key: 0x365273CD, session_id: 0x81 [1698585568.287759] info | SessionManager.hpp | establish_session | session established | client_key: 0x365273CD, address: 0 [1698585568.316018] info | ProxyClient.cpp | create_participant | participant created | client_key: 0x365273CD, participant_id: 0x000(1) [1698585568.316693] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x365273CD, topic_id: 0x000(2), participant_id: 0x000(1) [1698585568.317183] info | ProxyClient.cpp | create_publisher | publisher created | client_key: 0x365273CD, publisher_id: 0x000(3), participant_id: 0x000(1) [1698585568.318148] info | ProxyClient.cpp | create_datawriter | datawriter created | client_key: 0x365273CD, datawriter_id: 0x000(5), publisher_id: 0x000(3) [1698585568.318723] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x365273CD, topic_id: 0x001(2), participant_id: 0x000(1) [1698585568.319343] info | ProxyClient.cpp | create_publisher | publisher created | client_key: 0x365273CD, publisher_id: 0x001(3), participant_id: 0x000(1) [1698585568.319792] info | ProxyClient.cpp | create_datawriter | datawriter created | client_key: 0x365273CD, datawriter_id: 0x001(5), publisher_id: 0x001(3) [1698585568.320009] info | ProxyClient.cpp | create_topic | topic created | client_key: 0x365273CD, topic_id: 0x002(2), participant_id: 0x000(1) [1698585568.320186] info | ProxyClient.cpp | create_subscriber | subscriber created | client_key: 0x365273CD, subscriber_id: 0x000(4), participant_id: 0x000(1) [1698585568.320482] info | ProxyClient.cpp | create_datareader | datareader created | client_key: 0x365273CD, datareader_id: 0x000(6), subscriber_id: 0x000(4)


Terminal 2

kriz@kriz-ROG:~$ ros2 run teleop_twist_keyboard teleop_twist_keyboard

This node takes keypresses from the keyboard and publishes them as Twist messages. It works best with a US keyboard layout.

Moving around: u i o j k l m , .

For Holonomic mode (strafing), hold down the shift key:

U I O J K L M < >

t : up (+z) b : down (-z)

anything else : stop

q/z : increase/decrease max speeds by 10% w/x : increase/decrease only linear speed by 10% e/c : increase/decrease only angular speed by 10%

CTRL-C to quit

currently: speed 0.5 turn 1.0


Terminal 3

~/microros_ws$ ros2 topic list /cmd_vel /parameter_events /rosout

The-Kriz commented 8 months ago

using : Humble Board : Teensy 4.1 Status LED : Solid inbuilt LED Light

The-Kriz commented 8 months ago

does anyone know what the issue could be ?

The-Kriz commented 8 months ago

the reason for the issue was with micro ros agent and ros2's ROS_DOMAIN_ID difference while learing tutorials and doing other projects i had set the ROS_DOMAIN_ID=30

to fix just delete ROS_DOMAIN_ID from the .bashrc file in your Home (hidden file)

Screenshot from 2023-10-30 21-47-57