Giter Club home page Giter Club logo

Comments (2)

civerachb-cpr avatar civerachb-cpr commented on September 12, 2024

I followed this procedure and was able to get the Dingo-O to navigate using the AMCL demo:

  1. Add the lidar to the robot and start the simulation
export DINGO_OMNI=1

# I added a UST-10 lidar, but this should all work identically with the LMS1xx too
export DINGO_LASER=1
export DINGO_LASER_MODEL="ust10"
roslaunch dingo_gazebo dingo_world.launch
  1. Start Gmapping to record the map. Skip this step if you've already generated a map.
roslaunch dingo_navigation gmapping_demo.launch
  1. Start Rviz to monitor the map
roslaunch dingo_viz view_robot.launch config:=gmapping
  1. Use a PS4 controller paired to your PC or the interactive markers in Rviz to drive the robot around to generate the map.

  2. Save the map

rosrun map_server map_saver -f dingo_world

I've attached the files I produced:
dingo_world.zip

  1. Close Rviz and cancel the gmapping launch file.

  2. Start the AMCL demo:

roslaunch dingo_navigation amcl_demo.launch map_file:=/path/to/dingo_world/dingo_world.yaml
  1. Open Rviz
roslaunch dingo_viz view_robot config:=localization
  1. Press the "2D Pose Estimate" button on the top toolbar and click & drag to place the robot on the map with its approximate location and orientation.

For example, with the robot starting here:
actual_position

AMCL's initial estimate may be at the map's origin:
bad_estimate

You can see how the lidar data and the map don't line up at all.

After using the 2D pose estimate the robot's position is much closer to reality:
good_estimate

Close counts for the pose estimate; as long as the robot is close to the right location and oriented about the right way, AMCL will do a resonable job of re-localizing.

  1. Use the 2D Nav Goal button to set a goal pose. Lean back and watch the robot drive.

It's possible that if your computer is slightly under-powered, or lacks graphical hardware acceleration, that Gazebo is hogging too much of the CPU, causing the simulation to run too slowly. This in turn may cause errors with the TF data being passed to Gmapping and/or AMCL. In Gazebo, on the bottom toolbar, you should see "Realtime Factor." What is this reading on your system?

(For reference, when I just ran through the steps outlined above I was getting a Realtime Factor of between 0.85 and 0.9 at ~60FPS.)

from dingo.

tonybaltovski avatar tonybaltovski commented on September 12, 2024

Closing due to inactivity. Please feel free to re-open if issue persists.

from dingo.

Related Issues (1)

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.