zhxt / cyber-rt Goto Github PK
View Code? Open in Web Editor NEWRedistributed Apollo CyberRT, built with CMake.
License: Apache License 2.0
Redistributed Apollo CyberRT, built with CMake.
License: Apache License 2.0
why should install crberRT into /usr/local ? Is it necessary?
我编译的时候不能编译这个fastcdr的库,最后单独编译才解决,是否需要更改您的工程的CMakeList文件?
I have completed the first two steps,
but there is a problem when I try the 3rd step.
# 3. build Cyber RT Lite
cmake .. # where to use it ?
scripts/genprotosrc.sh # execute it in root dir?
make # run in build? there is no change...
I can't find execute file in example folder so I can't test step four. I'm not sure if I've compiled Cyber-RT.
Can I have some tips or is there a more detailed explanation?
Thank you very much.
Error:
CyberRT/cyber-rt-master/build/external/src/fastrtps/include/fastrtps/rtps/writer/RTPSWriter.h:66:54: error: ‘function’ in namespace ‘std’ does not name a template type
RTPS_DllAPI CacheChange_t* new_change(const std::function<uint32_t()>& dataCdrSerializedSize,
^~~~~~~~
Solution:
1.I just go to the build folder and open <build/external/src/fastrtps/include/fastrtps/rtps/writer/RTPSWriter.h>.
2.Add #include in the head file.
3.make
I don't know how to fully fixed it. If I delete the build folder, I need to add this manually.
cyber-rt/build$ cmake ..
-- CMake Prefix Path: /home/nvidia/Desktop/cyber-rt/build/local_depends
-- CMake Module Path: /home/nvidia/Desktop/cyber-rt/cmake;
-- Glog inc: /home/nvidia/Desktop/cyber-rt/build/local_depends/include lib: /home/nvidia/Desktop/cyber-rt/build/local_depends/lib/libglog.so
CMake Error at cmake/FindGlog.cmake:18 (target_link_libraries):
Cannot specify link libraries for target "Glog::glog" which is not built by
this project.
Call Stack (most recent call first):
cmake/external/glog-0.3.5.cmake:4 (find_package)
CMakeLists.txt:28 (include)
-- Configuring incomplete, errors occurred!
See also "/home/nvidia/Desktop/cyber-rt/build/CMakeFiles/CMakeOutput.log".
See also "/home/nvidia/Desktop/cyber-rt/build/CMakeFiles/CMakeError.log".
error in
if(Glog_FOUND)
if (NOT TARGET Glog::glog)
add_library(Glog::glog INTERFACE IMPORTED)
target_link_libraries(Glog::glog INTERFACE ${Glog_LIBRARY})
target_include_directories(Glog::glog INTERFACE ${Glog_INCLUDE_DIR})
endif()
endif()
我自己也基于cmake编译了cyber框架,目前发现自带的common_component_example跑不通,发布的消息,订阅者收不到,查下来,是因为cyber使用fast-rtps进行发布订阅时,基于protobuf对changemsg先进行了序列化操作,序列化后的数据包含了'\0',而fast-rtps不支持数据域中含0数据的传输,导致0以后的数据都被抛弃了,你这边工程有这个问题吗。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.