Git Product home page Git Product logo

Comments (4)

li-haojia avatar li-haojia commented on July 17, 2024

你好,我在kinetic下测试时通过的,这几天我会抽空测试一下melodic,看报错应该是costmap一些东西有不一样。

from clean-robot-turtlebot3.

numb0824 avatar numb0824 commented on July 17, 2024

您好,我在ros-melodic上测试,的确不行,原因应该是在clean_robot这个功能包里,PathPlanningNode.cpp里面:
/costmap_2d::Costmap2DROS lcr("cleaning_costmap", tf);
以及CleaningPathPlanner.cpp:402:55: error: no matching function for call to ‘costmap_2d::Costmap2DROS::getRobotPose(tf::Stampedtf::Transform&)’

猜测是movebase里面costmap_2d的版本问题,我之前测试在kinetic是ok的。然而我这两天看了好久,没发现是哪里的问题。

from clean-robot-turtlebot3.

li-haojia avatar li-haojia commented on July 17, 2024

我刚刚修复了一下 并且通过了测试,的确是由于costmap版本的问题,melodic中tf升级为了tf2。两个ros版本中的api不一致。
具体修改为
Cleaningpathplanner.h中 91行 initPose_类型改为

geometry_msgs::PoseStamped initPose_;

Cleaningpathplanner.cpp中 410 411行 获取原点坐标改为

    double wx = initPose_.pose.position.x; //获取原点的x坐标
    double wy = initPose_.pose.position.y;

PathPlanningNode.cpp中18行改为

    tf2_ros::Buffer tf;
    tf2_ros::TransformListener tf2_listener(tf); //多增加了一行

from clean-robot-turtlebot3.

li-haojia avatar li-haojia commented on July 17, 2024

melodic分支代码已经更新 https://github.com/mywisdomfly/Clean-robot-turtlebot3/tree/melodic-devel

from clean-robot-turtlebot3.

Related Issues (14)

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.