Code Monkey home page Code Monkey logo

Comments (8)

Yadunund avatar Yadunund commented on August 12, 2024

Hi,

Can you ensure your branch of traffic_editor has incorporated this fix open-rmf/rmf_traffic_editor#151

I'm assuming you're seeing this error from the beginning? Can you check if the spawn waypoint of the magni is connected to its navigation graph? Posing a screenshot of your rviz visualizer would be very helpful.

from rmf_demos.

MakinoharaShouko avatar MakinoharaShouko commented on August 12, 2024

image
Here is how it looks like in the traffic editor. My rviz currently does not display anything.
I was on ign_plugins branch which does not have the fix. I just switched to master branch but the problem persists

from rmf_demos.

Yadunund avatar Yadunund commented on August 12, 2024
  • Can you share the output of ros2 topic echo /robot_state for "magni1"?
  • Are you passing the correct navigation graph to the fleet adapter?
    <arg name="nav_graph_file" value="$(find-pkg-share rmf_demo_maps)/maps/office/nav_graphs/0.yaml" />
  • Also can you try performing a clean build after switching to master? i.e., removing build/ log/ and install folders and running colcon build again. In the latest traffic_editor master, bidirectional lanes do not have double sided arrows as seen in your image.
  • Are you not able to see robots or lanes in the visualizer even when you pan around? Zooming out and in might help locate where things are visualized. The view can then be saved in the config for subsequent launches. Make sure that Map Name in the Schedule Panel in Rviz is set to "guest_level" as you've created in map.

from rmf_demos.

codebot avatar codebot commented on August 12, 2024

from rmf_demos.

MakinoharaShouko avatar MakinoharaShouko commented on August 12, 2024

The latest traffic-editor does not render bidirectional arrows; it only renders unidirectional arrows (two-way lanes are painted a solid color to try to de-clutter the UI a bit). So from looking at the screenshot, it seems that the build of traffic-editor is not fully up-to-date.

On Sat, Jun 27, 2020 at 3:03 PM Yadu @.***> wrote: - Can you share the output of ros2 topic echo /robot_state for "magni1"? - Are you passing the correct navigation graph to the fleet adapter?

<arg name="nav_graph_file" value="$(find-pkg-share rmf_demo_maps)/maps/office/nav_graphs/0.yaml" />
- Also can you try performing a clean build after switching to master? i.e., removing build/ log/ and install folders and running colcon build again. In the latest traffic_editor master, bidirectional lanes do not have double sided arrows as seen in your image. - Are you not able to see robots or lanes in the visualizer even when you pan around? Zooming out and in might help locate where things are visualized. The view can then be saved in the config for subsequent launches. Make sure that Map Name in the Schedule Panel in Rviz is set to "guest_level" as you've created in map. — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#91 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIFDWT3DYQ3R75X64UOYTDRYWKUJANCNFSM4OJ4IKDQ .

I am editing with another traffic editor outside the rmf_demos_ws which I did not upgrade. In the work space I pulled the latest version

from rmf_demos.

MakinoharaShouko avatar MakinoharaShouko commented on August 12, 2024

When my rviz starts, it only loads one robot on the map though the map name is correct. I have to manually retype the map name to get the whole map to load correctly. I think that is why the robots would get lost, but I am confused why rviz does not load the navigation graph at the beginning.
image

from rmf_demos.

Yadunund avatar Yadunund commented on August 12, 2024

The Rviz problems you describe are related to setting up the rviz config file and not pertaining to the original issue of the robot being "lost".

The original problem could be due to the robot not reporting its state information correctly. Hence, it would be helpful if you could share your terminal output of ros2 topic echo /robot_state as suggested previously. If you're using an older implementation of slotcar plugin, the level_name field may not be populated in the publishing RobotState message. It would be helpful to verify this.

With regards to seeing the lanes in rviz at launch, you can to ensure:

  • Your launch file that includes the visualizer.xml file, passes the correct "map_name" argument for your map. In rmf_demos here is a reference for doing this
    <arg name="map_name" value="L1"/>
  • When RViz launches, the "Map Name" field in the SchedulePanel will probably differ from the name supplied above. This is because the Panel does not use the same launch parameters. You should overwrite the field with the appropriate map name and save the Rviz config file so that subsequent launches will load the correct map name.

from rmf_demos.

MakinoharaShouko avatar MakinoharaShouko commented on August 12, 2024

The Rviz problems you describe are related to setting up the rviz config file and not pertaining to the original issue of the robot being "lost".

The original problem could be due to the robot not reporting its state information correctly. Hence, it would be helpful if you could share your terminal output of ros2 topic echo /robot_state as suggested previously. If you're using an older implementation of slotcar plugin, the level_name field may not be populated in the publishing RobotState message. It would be helpful to verify this.

With regards to seeing the lanes in rviz at launch, you can to ensure:

  • Your launch file that includes the visualizer.xml file, passes the correct "map_name" argument for your map. In rmf_demos here is a reference for doing this
    <arg name="map_name" value="L1"/>
  • When RViz launches, the "Map Name" field in the SchedulePanel will probably differ from the name supplied above. This is because the Panel does not use the same launch parameters. You should overwrite the field with the appropriate map name and save the Rviz config file so that subsequent launches will load the correct map name.

Thank you for the suggestion on RViz, now I get the map load when it starts.
For the floor map error, I cloned the packages again and rebuilt my workspace. Now I don't have the error. I think probably something did not update when I pulled before.

from rmf_demos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.