Closed teufelweich closed 10 months ago
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args -r __ns:=/tb2
.sudo apt update && sudo apt upgrade
to update your packages. This issue was fixed here.turtlebot4-setup
tool.turtlebot4-ntpd-sync
from the RPi.Thanks! This solved most of the issues, but some still persist:
For 3. we tried looking into the TF tree with ros2 run tf2_tools view_frames --ros-args -r __ns:=/tb2
but found nothing obvious. (see PDF) frames_2023-04-17_11.50.11.pdf
When trying to SLAM we get some weird behavior, depending on where (VM or native Linux) we run the commands:
Please provide the following information:
Expected behaviour We were trying to SLAM according to this tutorial. Therefor we first used a VM (Ubuntu 22.04 under Windows) it worked fine. Then we also tried to slam using 2 different Notebooks with native Mint 21, we were not able to slam, using the same robot with the same configs.
Actual behaviour Using the VM we managed to do this, the tf-Tree had no errors and the map was visible as described in the tutorial. Using the native Linux-Mint Notebook slam does not work at all: we are unable to generate a map. We always get the error:
student@lenbookTP1:~$ ros2 launch turtlebot4_navigation slam.launch.py sync:=false
[INFO] [launch]: All log files can be found below /local/student/.ros/log/2023-05-02-09-07-03-008899-lenbookTP1-5166
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [async_slam_toolbox_node-1]: process started with pid [5167]
[async_slam_toolbox_node-1] [INFO] [1683011223.130218648] [slam_toolbox]: Node using stack size 40000000
[async_slam_toolbox_node-1] [INFO] [1683011223.148948062] [slam_toolbox]: Using solver plugin solver_plugins::CeresSolver
[async_slam_toolbox_node-1] [INFO] [1683011223.149022371] [slam_toolbox]: CeresSolver: Using SCHUR_JACOBI preconditioner.
[async_slam_toolbox_node-1] [INFO] [1683011226.488932534] [slam_toolbox]: Message Filter dropping message: frame 'rplidar_link' at time 1681817204.986 for reason 'discarding message because the queue is full'
[async_slam_toolbox_node-1] [INFO] [1683011226.635250109] [slam_toolbox]: Message Filter dropping message: frame 'rplidar_link' at time 1681817205.135 for reason 'discarding message because the queue is full'
[async_slam_toolbox_node-1] [INFO] [1683011226.779429496] [slam_toolbox]: Message Filter dropping message: frame 'rplidar_link' at time 1681817205.281 for reason 'discarding message because the queue is full'
And as soon as we start the turtlebot4_viz from the Mint-Notebook we get an error in the tf-tree:
No transform from [right|left_wheel] to [map|baselink|...selectetFrame...]
The VM and native Machine influence each other, depending on where which command is run. Everything is fine if we start slam from the VM and then open turtlebot4_viz in the VM. Then we open turtlebot4_viz on the Mint-Notebook and the map is visible on both devices but only on the VM the robot is visible, too. After we start turtlebot4_viz on the Mint-Notebook both TF-Trees will show the error written above. (before in the VM there was no error)
Thanks! This solved most of the issues, but some still persist:
- For the camera: we only get an image using the topic '/tb2/oakd/rgb/preview/image_raw' (for '/tb2/color/preview/image' and '/tb2/stereo/depth' we do not get any signal or error in turtlebot4_viz, but in diagnostics we get for both topics the error: no events recorded). When using ROS2 installed inside a VM we have the option to choose between 3 different topics for the camera: /tb2/oakd/rgb/preview/image_raw, /tb2/color/preview/image and /tb2/stereo/depth. But only image_raw is working. On a Linux Notebook we only have the topic image_raw which works fine.
- The bumper is still floating in front of the robot sometimes.
For 3. we tried looking into the TF tree with
ros2 run tf2_tools view_frames --ros-args -r __ns:=/tb2
but found nothing obvious. (see PDF) frames_2023-04-17_11.50.11.pdf
The offset bumper issue is fixed in the source package and should be released soon.
As for the issue with the Mint machines, can you check that ros2 topic list
is displaying all of the same topics as it does on the VM? It sounds like you may not be seeing the Create 3 data from the Mint machines.
Thanks! This solved most of the issues, but some still persist:
2. For the camera: we only get an image using the topic '/tb2/oakd/rgb/preview/image_raw' (for '/tb2/color/preview/image' and '/tb2/stereo/depth' we do not get any signal or error in turtlebot4_viz, but in diagnostics we get for both topics the error: no events recorded). When using ROS2 installed inside a VM we have the option to choose between 3 different topics for the camera: /tb2/oakd/rgb/preview/image_raw, /tb2/color/preview/image and /tb2/stereo/depth. But only image_raw is working. On a Linux Notebook we only have the topic image_raw which works fine. 3. The bumper is still floating in front of the robot sometimes.
For 3. we tried looking into the TF tree with
ros2 run tf2_tools view_frames --ros-args -r __ns:=/tb2
but found nothing obvious. (see PDF) frames_2023-04-17_11.50.11.pdf
The point 2. (stereo camera) happens to me also, I stereo depth camera is unusable and I cannot read anything except the raw image.
Thanks! This solved most of the issues, but some still persist:
- For the camera: we only get an image using the topic '/tb2/oakd/rgb/preview/image_raw' (for '/tb2/color/preview/image' and '/tb2/stereo/depth' we do not get any signal or error in turtlebot4_viz, but in diagnostics we get for both topics the error: no events recorded). When using ROS2 installed inside a VM we have the option to choose between 3 different topics for the camera: /tb2/oakd/rgb/preview/image_raw, /tb2/color/preview/image and /tb2/stereo/depth. But only image_raw is working. On a Linux Notebook we only have the topic image_raw which works fine.
- The bumper is still floating in front of the robot sometimes.
For 3. we tried looking into the TF tree with
ros2 run tf2_tools view_frames --ros-args -r __ns:=/tb2
but found nothing obvious. (see PDF) frames_2023-04-17_11.50.11.pdfThe offset bumper issue is fixed in the source package and should be released soon.
Great News!
As for the issue with the Mint machines, can you check that
ros2 topic list
is displaying all of the same topics as it does on the VM? It sounds like you may not be seeing the Create 3 data from the Mint machines.
The topic lists are identical.
~$ ros2 topic list
/battery_state
/cmd_audio
/cmd_lightring
/cmd_vel
/diagnostics
/dock_status
/function_calls
/hazard_detection
/hmi/buttons
/hmi/display
/hmi/display/message
/hmi/led
/imu
/interface_buttons
/ip
/ir_intensity
/ir_opcode
/joint_states
/joy
/joy/set_feedback
/kidnap_status
/mobility_monitor/transition_event
/mouse
/oakd/rgb/preview/camera_info
/oakd/rgb/preview/image_raw
/oakd/rgb/preview/image_raw/compressed
/oakd/rgb/preview/image_raw/compressedDepth
/oakd/rgb/preview/image_raw/theora
/odom
/parameter_events
/robot_description
/robot_state/transition_event
/rosout
/scan
/slip_status
/static_transform/transition_event
/stop_status
/tf
/tf_static
/wheel_status
/wheel_ticks
/wheel_vels
inside the VM we can SLAM with these topics, on the native machine SLAM doesn't work
Reading several other issues like #181 and #188 we think we have kind of the same problem.
Inside of the VM (where SLAM works) we get messages in the /odom
topic and on the native machines not.
When receiving messages they have the correct timestamps, but SLAM did also work when the timestamps where incorrect.
That's really frustrating.
Hi @teufelweich.
Did you manage to solve the problem with the error no events recorded in /color/preview/image
and /stereo/depth
? I ran into exactly the same problem, only my robot already has Humble pre-installed right away.
SLAM is still not working for Native MINT and still working in VM (so nothing changed).
We also tried MINT as VM which worked fine and we tried Ubuntu native which did not work -> it seems to work independently of OS but only in a VM. Natively it does NOT work.
As already mentioned ros2 topic list
and ros2 service list
are identical on Mint, VM and Pi.
BUT ros2 node list
is different:
Mint:
student@lenbookTP1:~$ ros2 node list
/joint_state_publisher
/joy_linux_node
/launch_ros_1102
/oakd
/oakd_container
/robot_state_publisher
/rplidar_composition
/rqt_gui_py_node_21442
/rqt_gui_py_node_3643
/teleop_twist_joy_node
/turtlebot4_base_node
/turtlebot4_node
VM (Ubuntu) and Pi:
ubuntu@ubuntu:~$ ros2 node list
/_internal/composite_hazard
/_internal/kinematics_engine
/_internal/mobility
/_internal/stasis
/joint_state_publisher
/joy_linux_node
/launch_ros_1102
/mobility_monitor
/motion_control
/oakd
/oakd_container
/robot_state
/robot_state_publisher
/rplidar_composition
/rqt_gui_py_node_21442
/rqt_gui_py_node_3643
/static_transform
/system_health
/teleop_twist_joy_node
/turtlebot4_base_node
/turtlebot4_node
/ui_mgr
missing:
/_internal/composite_hazard
/_internal/kinematics_engine
/_internal/mobility
/_internal/stasis
/mobility_monitor
/motion_control
/robot_state
/static_transform
/system_health
/ui_mgr
according to this lesson there should be even more internal topics visible on the pie:
/_internal/battery
/_internal/floor_type
/_internal/imu
/_internal/ir_codes
/_internal/ir_intensity
/_internal/mouse
Also the rqt_graph shows a lot less in Mint, probably because many nodes are missing...
Because of missing node /robot_state
we're not getting any data from topics:
/battery_state
/tf
/wheel_status
/wheel_ticks
/wheel_vels
That could be a reason why we can't use SLAM
That's what we get in MINT:
That's how it looks from Pi:
Info about /robot_state node (from Pi):
@Fingerling42: we did not work on this issue, as we are still unable to SLAM.
@teufelweich I have been going through and checking on old tickets. I see that there has been recent activity here. Are you looking for support on this ticket still? - If so do you mind giving me a summary of where you are at now and what the outstanding issues are?
@Fingerling42 Do you also have ongoing issues?
@hilary-luo
Hi. Yes, the problem is with stereo camera. In theory, it should publish the image to the /color/preview/image
and /stereo/depth
topics (at least that’s what it says in the manual). But it only publishes a low-quality image to /oakd/rgb/preview/image_raw
(meaning the camera is working).
I tried to run the robot diagnostics, and for both topics it gives the problem Level: ERROR, Message: No events recorded
@Fingerling42 are you running galactic? Can you confirm the package version that you are running for the turtlebot4-robot package?
@hilary-luo It is Humble, it was pre-installed.
@Fingerling42 can you please run sudo apt update
and sudo apt upgrade
on your robot to update all of the packages to the latest and then reboot and then let me know if the issues still persists.
@Fingerling42 can you please run
sudo apt update
andsudo apt upgrade
on your robot to update all of the packages to the latest and then reboot and then let me know if the issues still persists.
We updated the packages on the PI and on the native machine and our issues still persist. We don't see the node /robot_state
and thus can not SLAM or Navigate
@teufelweich are you working with @Fingerling42 on the same robot? if not, my last question to you was the following:
@teufelweich I have been going through and checking on old tickets. I see that there has been recent activity here. Are you looking for support on this ticket still? - If so do you mind giving me a summary of where you are at now and what the outstanding issues are?
The quoted text that you responded to was for @Fingerling42 for the issue he is having with his camera. If you (@teufelweich) are interested in resuming troubleshooting on this ticket then please provide a summary of where you are at now and what the outstanding core issues are. I ask this particularly because I was not part of the original troubleshooting. Am I correct in saying that you have a robot on Humble running the latest create3 firmware and primarily you are trying unsuccessfully to run SLAM / Navigation?
This issue is being closed due to inactivity. If you are still experiencing the issue, feel free to reopen this ticket when you are ready to continue the troubleshooting process.
Please provide the following information:
I've upgraded one of my Turtlebots to Humble and experience the following issues currently. I'm using the Discovery Setup and Namespaces.
There are several Issues:
ros2 run teleop_twist_keyboard teleop_twist_keyboard namespace:=/tb2
, the Robot does not react at allturtlebot4_viz view_model.launch.py namespace:=/tb2
I can see in the GUI that the bumper is floating (sometimes) half a meter in front of the robotturtlebot4_viz view_model.launch.py namespace:=/tb2
there are no laserscans visibleNo transform from [left_wheel] to [base_link]
)(always) the
turtlebot4_diagnostics
reports following errors/warnings:Full Name: /Turtlebot4/Create3/IMU/turtlebot4_diagnostics: imu topic status Component: turtlebot4_diagnostics: imu topic status Hardware ID: Turtlebot4 Level: WARNING Message: Frequency too high.
Full Name: /Turtlebot4/Camera/turtlebot4_diagnostics: color preview image topic status Component: turtlebot4_diagnostics: color preview image topic status Hardware ID: Turtlebot4 Level: ERROR Message: No events recorded.
Full Name: /Turtlebot4/Camera/turtlebot4_diagnostics: stereo depth topic status Component: turtlebot4_diagnostics: stereo depth topic status Hardware ID: Turtlebot4 Level: ERROR Message: No events recorded.
ntpd
from the webinterface.Service Status
topic list
When running
$ ros2 run teleop_twist_keyboard teleop_twist_keyboard namespace:=/tb2
I get this warning:[WARN] [1680685917.521080858] [rcl]: Found remap rule 'namespace:=/tb2'. This syntax is deprecated. Use '--ros-args --remap namespace:=/tb2' instead.
Using the proposed syntax of the warning doesn't work either. Is using--ros-args --remap namespace:=/tb2
the proper way forteleop
?