GithubHelp home page GithubHelp logo

dlut_vision's People

Contributors

zhuangyandlut avatar

Stargazers

 avatar

Watchers

 avatar  avatar

dlut_vision's Issues

libviso2 in rosdistro index twice

Hi @ZhuangYanDLUT,
I've seen that you modified and released our libviso2 wrapper into the ROS ecosystem under a different name. You are also offering libviso2 which is already provided by our repository. If you made changes that you would like to provide to the ROS community, could you rename that package, too?
The current situation leads to confusion, see srv/viso2#30

VisoInfo.h missing

I got the following error while trying to catkin_make the packages

fatal error: viso2_ros/VisoInfo.h: No such file or directory
#include <viso2_ros/VisoInfo.h>

Is this file missing?

Deprecated definition of Quarternion

I tried to catkin_make the package, and this is the error I got

warning: ‘tf::Quaternion::Quaternion(const tfScalar&, const tfScalar&, const tfScalar&)’ is deprecated (declared at /opt/ros/indigo/include/tf/LinearMath/Quaternion.h:51) [-Wdeprecated-declarations]
tf::Quaternion q(Rz,Ry,Rx);

and the compiler stopped. Am using ubuntu 14.04 Indigo-ROS. Can you please tell me how I can solve this?

compilation errors regarding VisoInfo.h

After fixing the issues mentioned, this is the new issue encountered.

the compilation errors are stated as below :

/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp: In constructor ‘viso2_ros::MonoOdometer::MonoOdometer(const string&)’:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:44:36: error: ‘VisoInfo_’ was not declared in this scope
info_pub_ = local_nh.advertise<VisoInfo_>("info",10,false);
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:44:36: note: suggested alternative:
In file included from /home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:10:0:
/home/tonystark/viso2_odom/devel/include/viso2_ros/VisoInfo.h:23:8: note: ‘dlut_viso2_ros::VisoInfo_’
struct VisoInfo_
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:44:62: error: no matching function for call to ‘ros::NodeHandle::advertise(const char [5], int, bool)’
info_pub_ = local_nh.advertise<VisoInfo_>("info",10,false);
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:44:62: note: candidates are:
In file included from /opt/ros/indigo/include/ros/ros.h:45:0,
from /home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:1:
/opt/ros/indigo/include/ros/node_handle.h:236:15: note: template ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size, bool latch = false)
^
/opt/ros/indigo/include/ros/node_handle.h:236:15: note: template argument deduction/substitution failed:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:44:62: error: template argument 1 is invalid
info_pub_ = local_nh.advertise<VisoInfo_>("info",10,false);
^
In file included from /opt/ros/indigo/include/ros/ros.h:45:0,
from /home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:1:
/opt/ros/indigo/include/ros/node_handle.h:302:13: note: template ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, const SubscriberStatusCallback&, const SubscriberStatusCallback&, const VoidConstPtr&, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size,
^
/opt/ros/indigo/include/ros/node_handle.h:302:13: note: template argument deduction/substitution failed:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:44:62: error: template argument 1 is invalid
info_pub_ = local_nh.advertise<VisoInfo_>("info",10,false);
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp: In member function ‘void viso2_ros::MonoOdometer::imageCallback(const ImageConstPtr&, const CameraInfoConstPtr&)’:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:132:7: error: ‘VisoInfo’ was not declared in this scope
VisoInfo info_msg;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:132:7: note: suggested alternative:
In file included from /home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:10:0:
/home/tonystark/viso2_odom/devel/include/viso2_ros/VisoInfo.h:77:60: note: ‘dlut_viso2_ros::VisoInfo’
typedef ::dlut_viso2_ros::VisoInfo_std::allocator VisoInfo;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:132:16: error: expected ‘;’ before ‘info_msg’
VisoInfo info_msg;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:133:16: error: ‘const CameraInfoConstPtr’ has no member named ‘header’
info_msg.header.stamp = image_msg->header.stamp;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:134:16: error: ‘const CameraInfoConstPtr’ has no member named ‘got_lost’
info_msg.got_lost = !success;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:135:16: error: ‘const CameraInfoConstPtr’ has no member named ‘change_reference_frame’
info_msg.change_reference_frame = false;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:136:16: error: ‘const CameraInfoConstPtr’ has no member named ‘num_matches’
info_msg.num_matches = visual_odometer_->getNumberOfMatches();
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:137:16: error: ‘const CameraInfoConstPtr’ has no member named ‘num_inliers’
info_msg.num_inliers = visual_odometer_->getNumberOfInliers();
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:139:16: error: ‘const CameraInfoConstPtr’ has no member named ‘runtime’
info_msg.runtime = time_elapsed.toSec();
^
make[2]: *** [dlut_viso2_ros/CMakeFiles/mono_odometer.dir/src/mono_odometer.cpp.o] Error 1
make[1]: *** [dlut_viso2_ros/CMakeFiles/mono_odometer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp: In constructor ‘viso2_ros::StereoOdometer::StereoOdometer(const string&)’:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:89:44: error: ‘VisoInfo’ was not declared in this scope
info_pub_ = local_nh.advertise("info", 1);
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:89:44: note: suggested alternative:
In file included from /home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:10:0:
/home/tonystark/viso2_odom/devel/include/viso2_ros/VisoInfo.h:77:60: note: ‘dlut_viso2_ros::VisoInfo’
typedef ::dlut_viso2_ros::VisoInfo_std::allocator VisoInfo;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:89:63: error: no matching function for call to ‘ros::NodeHandle::advertise(const char [5], int)’
info_pub_ = local_nh.advertise("info", 1);
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:89:63: note: candidates are:
In file included from /opt/ros/indigo/include/ros/ros.h:45:0,
from /home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:1:
/opt/ros/indigo/include/ros/node_handle.h:236:15: note: template ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size, bool latch = false)
^
/opt/ros/indigo/include/ros/node_handle.h:236:15: note: template argument deduction/substitution failed:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:89:63: error: template argument 1 is invalid
info_pub_ = local_nh.advertise("info", 1);
^
In file included from /opt/ros/indigo/include/ros/ros.h:45:0,
from /home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:1:
/opt/ros/indigo/include/ros/node_handle.h:302:13: note: template ros::Publisher ros::NodeHandle::advertise(const string&, uint32_t, const SubscriberStatusCallback&, const SubscriberStatusCallback&, const VoidConstPtr&, bool)
Publisher advertise(const std::string& topic, uint32_t queue_size,
^
/opt/ros/indigo/include/ros/node_handle.h:302:13: note: template argument deduction/substitution failed:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:89:63: error: template argument 1 is invalid
info_pub_ = local_nh.advertise("info", 1);
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp: In member function ‘virtual void viso2_ros::StereoOdometer::imageCallback(const ImageConstPtr&, const ImageConstPtr&, const CameraInfoConstPtr&, const CameraInfoConstPtr&)’:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:267:21: error: ‘VisoInfo’ was not declared in this scope
VisoInfo info_msg;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:267:21: note: suggested alternative:
In file included from /home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:10:0:
/home/tonystark/viso2_odom/devel/include/viso2_ros/VisoInfo.h:77:60: note: ‘dlut_viso2_ros::VisoInfo’
typedef ::dlut_viso2_ros::VisoInfo_std::allocator VisoInfo;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:267:30: error: expected ‘;’ before ‘info_msg’
VisoInfo info_msg;
^
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/stereo_odometer.cpp:268:21: error: ‘info_msg’ was not declared in this scope
info_msg.header.stamp = l_image_msg->header.stamp;
^
make[2]: *** [dlut_viso2_ros/CMakeFiles/stereo_odometer.dir/src/stereo_odometer.cpp.o] Error 1
make[1]: *** [dlut_viso2_ros/CMakeFiles/stereo_odometer.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j4 -l4" failed

The error to concentrate is

template argument deduction/substitution failed:
/home/tonystark/viso2_odom/src/dlut_viso2_ros/src/mono_odometer.cpp:44:62: error: template argument 1 is invalid
info_pub_ = local_nh.advertise<VisoInfo_>("info",10,false);

one possible solution can be from here

http://answers.ros.org/question/207956/cant-find-correct-sytax-for-rosnodehandleadvertise/

But what is the type of message to be published? there seems to be a mistake only in that. There are number of errors leading to this one, but substitutions or alternatives were considered for the above, whereas this one wasn't resolved by the compiler itself.

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.