Skip to content

Commit

Permalink
solve some problems
Browse files Browse the repository at this point in the history
  • Loading branch information
YaominJun committed Nov 27, 2020
1 parent 0a81e07 commit 428651d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,24 @@ Solution:</br>
[]()[reference for install](https://github.com/protocolbuffers/protobuf/blob/master/src/README.md);</br>
[]()[reference about protobuf](https://github.com/protocolbuffers/protobuf)

if report the error when you `catkin_build`: </br>
<table><tr><td bgcolor=MintCream>
fatal error: google/protobuf/stubs/stringprintf.h: 没有那个文件或目录
</td></tr></table>

Solution:</br>
Find the QpSpeed package's CMakelist.txt, and add your install path into line 133, like this: </br>

include_directories(
include
/home/luyaomin/0Disk/ros_dep/protobuf/protobuf-3.13.0/src/
${catkin_INCLUDE_DIRS}
${Boost_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIR}
${PROTOBUF_INCLUDE_DIRS}
third_lib/qpOASES/include
)


### 15)tf2_sensor_msgs
<table><tr><td bgcolor=MintCream>
Expand Down Expand Up @@ -244,6 +262,20 @@ The casadi.tar.gz is too big to push on the github. If you want to use it, pleas
之后运行才不会报错,否则会找不到对应的模型。


### 18)state_sampling `abs` report error
![]()![](images/2020-11-27%2022-58-25屏幕截图.png)
将对应文件里的`abs`改为`fabs`:</br>

if ((path_length > 30 || path_length > ref_path.back().s * 3 / 4)
&& std::fabs(i - center_id) < std::fabs(nearest_id - center_id)) {
nearest_id = i;
}
原因:</br>
[]()[abs和fabs](https://blog.csdn.net/linwh8/article/details/50754147/)


### 19)

小细节:
丢失了哪个包,可以去网上搜,如果是ROS_Wiki就有的,可以直接:
`sudo apt-get install ros-kinetic-pkgName` 尝试安装!!!
Binary file added images/2020-11-27 22-58-25屏幕截图.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 428651d

Please sign in to comment.