Giter VIP home page Giter VIP logo

Comments (10)

ZhepeiWang avatar ZhepeiWang commented on July 17, 2024

It seems to be a corner case that is not well handled.
Could you please provide the input information of convexCover?
The inputs are:
const std::vectorEigen::Vector3d &path,
const std::vectorEigen::Vector3d &points,
const Eigen::Vector3d &lowCorner,
const Eigen::Vector3d &highCorner,
const double &progress,
const double &range

from gcopter.

Zyhlibrary avatar Zyhlibrary commented on July 17, 2024

Screenshot from 2022-05-19 14-03-19
Thanks for your reply. The path and the obstacle points are shown in the figure. The lowCorner: (-20,-20,0) highCorner: (20,20,2),progress: 7, range: 3. The error occurred in the function firi::firi(bd, pc, a, b, hp)
Screenshot from 2022-05-19 14-14-00
;

from gcopter.

Zyhlibrary avatar Zyhlibrary commented on July 17, 2024

Actually, once the environment has no obstacles, the obstacle points will be empty, it should be easier to build the flight corridor and get the optimal path, but the code seems not work in this case. I guess there are no constraint on the maximum construction range when build the flight corridor in the environment without obstacles.

from gcopter.

ZhepeiWang avatar ZhepeiWang commented on July 17, 2024

I wonder if there is a call where pc contained no points.
If this is the truth, it can be simply resolved by return the bd with normalized normal vectors.
Could you print valid_pc.size() before the call to firi::firi? Or I will do the test later.

from gcopter.

Zyhlibrary avatar Zyhlibrary commented on July 17, 2024

valid_pc: 2108
valid_pc: 418
valid_pc: 125
valid_pc: 0
This is the results in one construction process.

from gcopter.

Zyhlibrary avatar Zyhlibrary commented on July 17, 2024

It perfectly solves the problem. Thanks for your time and detailed explanation~

from gcopter.

ZhepeiWang avatar ZhepeiWang commented on July 17, 2024

I have found a bug when no obstacles exist which is caused by distRs.minCoeff(&pcMinId)
When pc is empty, distRs is also an empty vec.
In Eigen, find the minimum element in an empty vec causes crashes.

I have fixed it in the commit.

Please check it in your case and see if it solves your problem.
Whether it works or not, please tell me the results.

from gcopter.

ZhepeiWang avatar ZhepeiWang commented on July 17, 2024

It perfectly solves the problem. Thanks for your time and detailed explanation~

Hey, I made a typo in an old commit but some how it hides the crash.

Please check the commit mentioned above.

from gcopter.

ZhepeiWang avatar ZhepeiWang commented on July 17, 2024

0
The typos are fixed now.

from gcopter.

Zyhlibrary avatar Zyhlibrary commented on July 17, 2024

OK, thanks for that, it also works. hhh~

from gcopter.

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.