Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

robot model in RViz flickers during map generation / navigation #9

Closed
lin-crystal opened this issue Mar 7, 2024 · 1 comment
Closed

Comments

@lin-crystal
Copy link

lin-crystal commented Mar 7, 2024

Update: problem is solved馃コ

Hi Chinedu, thank you for the amazing project and work!!!
I am currently working on a Bachelor thesis project and referring to your project code. For my project, I am using an Arduino robot with a differential drive wheel, the Arduino robot is equipped with a Raspberry PI4 board and a RPLidar laser ranger. ROS2 is running on the Raspberry PI (as ROS2 server), which controls the RPLidar and Arduino. I've implemented a hardware interface between ROS2 and the motor/encoder, as well as a serial communication interface between Raspberry PI and Arduino. On my PC, (as ROS2 client), I am running RViz, Navigation2 and SLAM, a server and client network configuration is also set up. I do not have a camera nor IMU sensor equipped on my robot.

However, I've encountered some issues with RViz during map generation and navigation.

  • map generation:
    When Arduino robot is driven around using a joystick, there is a flickering issue with the robot model in RViz. The lidar map can be generated (please refer to video: 鈥渕ap_generation_RViz" and 鈥渕ap_generation_robot").
  • navigation:
    The lidar map saved from map generation is used for navigation. However, the robot model in RViz moves slowly to another position and sometimes jumps to other positions, even though the Arduino robot remains stationary. The workaround for this issue is to re-estimate the position of the robot model in RViz before setting the next navigation goal. After the re-estimation, the Arduino robot will adjust its position and velocity to the according direction, then the next navigation goal can be set (please refer to video: "navigation_RViz" and 鈥渘avigation_robot").

Here are the videos demonstrating the Arduino robot and RViz (link: https://drive.google.com/drive/folders/1d4ghat_3an8GGp7BKmsZSXNS8OKigj-e?usp=drive_link).

I am quite new to ROS2 and have been unable to resolve this problem despite trying some troubleshooting methods..... I really wish you could give me some advice and suggestions. Thank you so much and looking forward to your reply!

@TheNoobInventor
Copy link
Owner

Hi Lin,

I am only just seeing this now, but I am glad to hear that you sorted out the issue. I am curious as to how you fixed it, could also help someone else that could have the issue later on.

Also, thank you for the kind words about the project! And I wish you all the best on your thesis!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants