GithubHelp home page GithubHelp logo

Comments (2)

awesomebytes avatar awesomebytes commented on July 19, 2024

I have the same experience, I did this little change:

    if (object_info.has_field("mesh_uri")){
      mesh_resource = object_info.get_field<std::string>("mesh_uri");
      std::stringstream ss;
      ss << "mesh_resource contains: " << mesh_resource << "\n";
      ROS_WARN("%s", ss.str().c_str());
      mesh_resource.replace(mesh_resource.find("cloud.ply"), mesh_resource.length(), "mesh.stl");
      ss << "Replaced cloud.ply for mesh.stl, now contains: " << mesh_resource << "\n";
      ROS_WARN("%s", ss.str().c_str());
    }

And effectively, now the correct mesh is showing.

I'm tracking down where this info comes from, and mesh_uri becomes filled here:
https://github.com/wg-perception/object_recognition_ros/blob/master/src/info_cache/info_cache.cpp#L121

But I see no evidence of .ply being writen anywhere (I've done a grep -r ply in ork_ros).

Ok, kept debugging, when running the line:
https://github.com/wg-perception/object_recognition_ros/blob/master/src/info_cache/info_cache.cpp#L121

object_info_ptr->has_field("mesh_uri")

Gave me TRUE.

object_info_ptr->has_attachment("mesh")

Gave me FALSE.

So it won't execute the code that references to .stl... so, what is filled in there then? Seems to come from before, maybe at the training/meshing? I'll keep looking into it.

from object_recognition_ros.

awesomebytes avatar awesomebytes commented on July 19, 2024

Thanks to @vrabaud we fixed this issue with this commit:
wg-perception/object_recognition_core@991cdac

from object_recognition_ros.

Related Issues (19)

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.