Comments (13)
能提供一个更详细的描述吗?
from clean-robot-turtlebot3.
能提供一个更详细的描述吗?
通过rosnode list,发现有/path_planning_node 和 /next_goal节点,rostopic echo /next_goal, topic does not appear to be published yet
界面信息:
count : 0
...
[path_planning_node-10] process has died [pid ...,...]
from clean-robot-turtlebot3.
是没有规划路径? 还是说没有执行?
from clean-robot-turtlebot3.
是没有规划路径? 还是说没有执行?
没有规划出路径,机器人原地不动,或者说走了几步就出错中断了,一直发count : 0。
错误信息:[path_planning_node-10] process has died [pid 29639, exit code -6, cmd /home/qiy/catkin_ws/devel/lib/clean_robot/path_planning_node __name:=path_planning_node __log:=/home/qiy/.ros/log/cb188506-5936-11eb-a273-00e04c3bbaee/path_planning_node-10.log].
经过查找原因:terminate called after throwing an instance of 'cv::Exception'
what(): OpenCV(4.0.0) /home/qiy/下载/opencv-4.0.0/modules/imgproc/src/drawing.cpp:1811: error: (-215:Assertion failed) 0 < thickness && thickness <= MAX_THICKNESS in function 'line'
个人感觉是在opencv中出错了,还望大佬指点
from clean-robot-turtlebot3.
是没有规划路径? 还是说没有执行?
from clean-robot-turtlebot3.
是没有规划路径? 还是说没有执行?
既没有规划路径,也没有执行
from clean-robot-turtlebot3.
你用的ros版本是多少呀?我看你的opencv 是4.0的。我测试通过的环境的是ros melodic 和kinetic opencv 3.2
from clean-robot-turtlebot3.
你用的ros版本是多少呀?我看你的opencv 是4.0的。我测试通过的环境的是ros melodic 和kinetic opencv 3.2
ubuntu18.04 LTS + melodic , opencv4.0
from clean-robot-turtlebot3.
你试试把CleaningPathPlanner.cpp
的649行
writeResult(resultMat, pathVec_);
注释掉
from clean-robot-turtlebot3.
你试试把
CleaningPathPlanner.cpp
的649行writeResult(resultMat, pathVec_);
注释掉
问题解决了,能问下为什么?要是我怎么也想不到注释这句代码
from clean-robot-turtlebot3.
这个函数里面调用了line(画线的) opencv 4.0对他参数进行了一个检查,我之前写的没有符合这个检查(他是int型的 我用了小数 0.3 导致转换时候会变成0)。实际上这一个函数在ros中没什么用,只是用opencv 可视化的一个函数, 所以注释掉就好了。
from clean-robot-turtlebot3.
你试试把
CleaningPathPlanner.cpp
的649行writeResult(resultMat, pathVec_);
注释掉
问题解决了,能问下为什么?要是我怎么也想不到注释这句代码
(我写的代码不规范造成的 逃:)
from clean-robot-turtlebot3.
代码已更新
from clean-robot-turtlebot3.
Related Issues (15)
- 你好,你的这个工程是在哪个ROS版本上运行的,我用melodic编译会报错,如下 HOT 4
- cartographer不能主动建图 HOT 1
- next_goal發送目標點只有執行一次 HOT 4
- 運用turtlebot3 burger運行在實體機器人上
- 启动之后机器人一直不动 HOT 7
- How is the cleared area painted? HOT 4
- error while running the cleaning simulation. HOT 1
- 18.04 + opencv4.0,可以规划出全局路径,但是机器人只在原地旋转,然后停止。提示两个warning。 HOT 1
- how to use explore_costmap.launch HOT 1
- 大型地图下清扫路径生成失败的问题 HOT 2
- 关于A*算法 HOT 1
- Local Costmap Warning
- 如何让路径变得更加稀疏一些 HOT 3
- When I am trying this on real turltebot3 burger in melodic..
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clean-robot-turtlebot3.