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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rviz #868

Closed
1 task
Yadunund opened this issue Apr 5, 2023 · 3 comments
Closed
1 task

Rviz #868

Yadunund opened this issue Apr 5, 2023 · 3 comments

Comments

@Yadunund
Copy link
Member

Yadunund commented Apr 5, 2023

This is a sanity check to ensure that the GUI tools aren't fundamentally broken.

Setup

  • DDS vendor: FastDDS
  • BuildType: Binary
  • Chip: Amd64
  • Os: Ubuntu Jammy

Links

Checks

  • Check Rviz

    Launch using the rviz2 command.

    The rviz window should be generally usable and should be able to load some of the discovered visualizations.

    Loading visualizations into the tree and using the mouse to navigate through the virtual workspace is sufficient for this test.

    details

    Try

    1. # User input in terminal 1
      ros2 launch dummy_robot_bringup dummy_robot_bringup.launch.py
    2. # User input in terminal 2
      rviz2
    3. In RViz, in the left pane, click 'Add'. A window will pop up. In that window, under 'rviz_default_plugins', select 'TF' and click 'OK'. Under 'Displays', in the 'Global Options' section, change the 'Fixed Frame' to '/world'.

    4. In RViz, in the left pane, click 'Add'. A window will pop up. In that window, under 'rviz_default_plugins', select 'LaserScan' and click 'OK'. Under 'Displays', in the 'LaserScan' section, change the 'Topic' to '/scan'.

    Expect

    1. You should see the dummy robot's kinematic tree waving back and forth in the rviz window.

    2. You should see a laser scan emitting from the waving end of the dummy robot.

    3. Play around, move the camera, enable and disable things in the 'Displays' pane. RViz should be stable.


You can find the code used to generate this test case here

@iuhilnehc-ynos
Copy link

Use
ros2 launch dummy_robot_bringup dummy_robot_bringup_launch.py
instead of
ros2 launch dummy_robot_bringup dummy_robot_bringup.launch.py.

log

terminal 1

$ ros2 launch dummy_robot_bringup dummy_robot_bringup_launch.py
[INFO] [launch]: All log files can be found below /home/chenlh/.ros/log/2023-05-05-16-13-43-514918-OptiPlex-7080-1641639
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [dummy_map_server-1]: process started with pid [1641653]
[INFO] [robot_state_publisher-2]: process started with pid [1641655]
[INFO] [dummy_joint_states-3]: process started with pid [1641657]
[INFO] [dummy_laser-4]: process started with pid [1641659]
[dummy_laser-4] [INFO] [1683274423.710153764] [dummy_laser]: angle inc:	0.004363
[dummy_laser-4] [INFO] [1683274423.710216758] [dummy_laser]: scan size:	1081
[dummy_laser-4] [INFO] [1683274423.710224097] [dummy_laser]: scan time increment: 	0.000028
[robot_state_publisher-2] [INFO] [1683274423.714457346] [robot_state_publisher]: got segment single_rrbot_camera_link
[robot_state_publisher-2] [INFO] [1683274423.714513797] [robot_state_publisher]: got segment single_rrbot_hokuyo_link
[robot_state_publisher-2] [INFO] [1683274423.714523662] [robot_state_publisher]: got segment single_rrbot_link1
[robot_state_publisher-2] [INFO] [1683274423.714529837] [robot_state_publisher]: got segment single_rrbot_link2
[robot_state_publisher-2] [INFO] [1683274423.714535203] [robot_state_publisher]: got segment single_rrbot_link3
[robot_state_publisher-2] [INFO] [1683274423.714539993] [robot_state_publisher]: got segment world

terminal 2

$ rviz2
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[INFO] [1683274444.811177187] [rviz2]: Stereo is NOT SUPPORTED
[INFO] [1683274444.811222659] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[INFO] [1683274444.821606556] [rviz2]: Stereo is NOT SUPPORTED
[ERROR] [1683274840.790165800] [rviz2]: Lookup would require extrapolation into the future.  Requested time 1683274840.806912 but the latest data is at time 1683274840.789674, when looking up transform from frame [single_rrbot_hokuyo_link] to frame [world]
[ERROR] [1683274840.874816336] [rviz2]: Lookup would require extrapolation into the future.  Requested time 1683274840.873580 but the latest data is at time 1683274840.849708, when looking up transform from frame [single_rrbot_hokuyo_link] to frame [world]
[ERROR] [1683274840.971003047] [rviz2]: Lookup would require extrapolation into the future.  Requested time 1683274840.973723 but the latest data is at time 1683274840.969704, when looking up transform from frame [single_rrbot_hokuyo_link] to frame [world]
...

Expect

  • You should see the dummy robot's kinematic tree waving back and forth in the rviz window.
    OK
  • You should see a laser scan emitting from the waving end of the dummy robot.
    OK
  • Play around, move the camera, enable and disable things in the 'Displays' pane. RViz should be stable.
    NG

Problems

After unchecking and checking the LaserScan checkbox, the LaserScan status in the Displays becomes unstable (switch state repeatedly Error <-> Ok ).
rviz2 in the console outputs error information frequently.

image
image
animation

Fixed?

ros2/rviz#852 (comment)

@hwoithe
Copy link

hwoithe commented May 7, 2023

For what it's worth, I am also seeing the same behavior.

@Yadunund
Copy link
Member Author

Yadunund commented May 8, 2023

Thanks for highlighting the issue. I've opened this discussion to keep track of it #1053

Since other rviz functionality works, I'll close this ticket.

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

No branches or pull requests

3 participants