Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report a bug #2

Open
JunLi-HIT opened this issue Mar 21, 2020 · 0 comments
Open

Report a bug #2

JunLi-HIT opened this issue Mar 21, 2020 · 0 comments

Comments

@JunLi-HIT
Copy link

I clone the package in my catkin_ws/src and run
catkin build signal_logger.
A error appears in the terminal as shown below.
Errors << signal_logger_core:make /home/junli/catkin_ws/logs/signal_logger_core/build.make.002.log In file included from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/BufferInterface.hpp:10:0, from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/LogElementInterface.hpp:12, from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/LogElementBase.hpp:11, from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/SignalLoggerBase.hpp:12, from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/src/SignalLoggerBase.cpp:9: /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/typedefs.hpp:83:8: error: ‘vector’ is not a member of ‘std’ std::vector<T, Eigen::aligned_allocator<T>>, std::vector<T>>::type; ^~~~~~ /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/typedefs.hpp:83:8: error: ‘vector’ is not a member of ‘std’ /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/typedefs.hpp:83:44: error: template argument 2 is invalid std::vector<T, Eigen::aligned_allocator<T>>, std::vector<T>>::type; ^~ /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/typedefs.hpp:83:46: error: expected identifier before ‘,’ token std::vector<T, Eigen::aligned_allocator<T>>, std::vector<T>>::type; ^ In file included from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/LogElementBase.hpp:12:0, from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/SignalLoggerBase.hpp:12, from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/src/SignalLoggerBase.cpp:9: /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/Buffer.hpp:150:3: error: ‘vector_type’ does not name a type; did you mean ‘decltype’? vector_type<ValueType_> readNewValues() ^~~~~~~~~~~ decltype In file included from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/SignalLoggerBase.hpp:12:0, from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/src/SignalLoggerBase.cpp:9: /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/LogElementBase.hpp:131:3: error: ‘vector_type’ does not name a type; did you mean ‘decltype’? vector_type<ValueType_> readNewValues() { return buffer_.readNewValues(); } ^~~~~~~~~~~ decltype In file included from /home/junli/catkin_ws/src/signal_logger/signal_logger_core/src/SignalLoggerBase.cpp:9:0: /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/SignalLoggerBase.hpp:191:3: error: ‘vector_type’ does not name a type; did you mean ‘decltype’? vector_type<ValueType_> readNewValues(const std::string & name) { ^~~~~~~~~~~ decltype /home/junli/catkin_ws/src/signal_logger/signal_logger_core/include/signal_logger_core/SignalLoggerBase.hpp:206:3: error: ‘vector_type’ does not name a type; did you mean ‘decltype’? vector_type<TimestampPair> readNewTimeLogValues(); ^~~~~~~~~~~ decltype /home/junli/catkin_ws/src/signal_logger/signal_logger_core/src/SignalLoggerBase.cpp:540:1: error: ‘vector_type’ does not name a type; did you mean ‘decltype’? vector_type<TimestampPair> SignalLoggerBase::readNewTimeLogValues() { ^~~~~~~~~~~ decltype make[2]: *** [CMakeFiles/signal_logger_core.dir/src/SignalLoggerBase.cpp.o] Error 1 make[1]: *** [CMakeFiles/signal_logger_core.dir/all] Error 2 make: *** [all] Error 2
I add #include <vector> in the typedefs.hpp file, then the package can be compiled successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant