Giter Site home page Giter Site logo

Point Angle about polygon_coverage_planning HOT 2 CLOSED

ethz-asl avatar ethz-asl commented on September 27, 2024
Point Angle

from polygon_coverage_planning.

Comments (2)

rikba avatar rikba commented on September 27, 2024

Hi Salih,

Are you asking if the package computes the heading of the robot to point to the next waypoint?

This package only returns a vector of waypoints. But you can compute the direction of the connecting segment quite easily. Let's assume std::vector<Eigen::Vector3d> waypoints is the vector of waypoints.

for (size_t i = 0; i < waypoints.size() - 1; ++i) {
  const Eigen::Vector3d direction = waypoints[i + 1] - waypoints[i];
  const double heading = std::atan2(direction.y(), direction.x());
}

I hope that answers your question.

from polygon_coverage_planning.

ehvenimunis avatar ehvenimunis commented on September 27, 2024

Yes, I asked if the package calculates the robot's direction to point to the next waypoint.
I got the solution with a similar line of code.

Thanks @rikba

from polygon_coverage_planning.

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.