Comments (3)
Hi, @jameslele Have you installed tf2_ros? You can type sudo apt-get install ros-eloquent-tf2-ros
or you can clone this repo. It is working for me and I have looking the code of the repo and lookupTransform exists, so probably you have any problem with tf2_ros library. Try the two options I said and ask me what you need. Your feedback is very important. Thank you.
from gb_visual_detection_3d.
Hello, I am obtaining following error i have ros-dashing ubuntu18.04 in Roscube-X. I have installed ros-dashing-tf2-ros.
/home/robolab/ros2_ws/gb_visual_detection_3d/darknet_ros_3d/src/darknet_ros_3d/Darknet3D.cpp:216:61: error: no matching function for call to ‘tf2_ros::Buffer::lookupTransform(std::cxx11::string&, std_msgs::msg::Header<std::allocator >::frame_id_type&, std_msgs::msg::Header<std::allocator >::stamp_type&, tf2::Duration)’
point_cloud.header.stamp, tf2::durationFromSec(2.0));
^
In file included from /home/robolab/ros2_ws/gb_visual_detection_3d/darknet_ros_3d/include/darknet_ros_3d/Darknet3D.hpp:22:0,
from /home/robolab/ros2_ws/gb_visual_detection_3d/darknet_ros_3d/src/darknet_ros_3d/Darknet3D.cpp:18:
/opt/ros/dashing/include/tf2_ros/buffer.h:79:5: note: candidate: virtual geometry_msgs::msg::TransformStamped tf2_ros::Buffer::lookupTransform(const string&, const string&, const TimePoint&, tf2::Duration) const
lookupTransform(const std::string& target_frame, const std::string& source_frame,
^~~~~~~~~~~~~~~
/opt/ros/dashing/include/tf2_ros/buffer.h:79:5: note: no known conversion for argument 3 from ‘std_msgs::msg::Header<std::allocator >::stamp_type {aka builtin_interfaces::msg::Time<std::allocator >}’ to ‘const TimePoint& {aka const std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long int, std::ratio<1, 1000000000> > >&}’
/opt/ros/dashing/include/tf2_ros/buffer.h:96:5: note: candidate: virtual geometry_msgs::msg::TransformStamped tf2_ros::Buffer::lookupTransform(const string&, const TimePoint&, const string&, const TimePoint&, const string&, tf2::Duration) const
lookupTransform(const std::string& target_frame, const tf2::TimePoint& target_time,
^~~~~~~~~~~~~~~
/opt/ros/dashing/include/tf2_ros/buffer.h:96:5: note: candidate expects 6 arguments, 4 provided
In file included from /opt/ros/dashing/include/tf2_ros/buffer_interface.h:37:0,
from /opt/ros/dashing/include/tf2_ros/buffer.h:35,
from /home/robolab/ros2_ws/gb_visual_detection_3d/darknet_ros_3d/include/darknet_ros_3d/Darknet3D.hpp:22,
from /home/robolab/ros2_ws/gb_visual_detection_3d/darknet_ros_3d/src/darknet_ros_3d/Darknet3D.cpp:18:
/opt/ros/dashing/include/tf2/buffer_core.h:152:5: note: candidate: geometry_msgs::msg::TransformStamped tf2::BufferCore::lookupTransform(const string&, const TimePoint&, const string&, const TimePoint&, const string&) const
lookupTransform(const std::string& target_frame, const TimePoint& target_time,
^~~~~~~~~~~~~~~
/opt/ros/dashing/include/tf2/buffer_core.h:152:5: note: candidate expects 5 arguments, 4 provided
/opt/ros/dashing/include/tf2/buffer_core.h:135:5: note: candidate: geometry_msgs::msg::TransformStamped tf2::BufferCore::lookupTransform(const string&, const string&, const TimePoint&) const
lookupTransform(const std::string& target_frame, const std::string& source_frame,
^~~~~~~~~~~~~~~
/opt/ros/dashing/include/tf2/buffer_core.h:135:5: note: candidate expects 3 arguments, 4 provided
make[2]: *** [CMakeFiles/darknet_ros_3d.dir/src/darknet_ros_3d/Darknet3D.cpp.o] Error 1
make[1]: *** [CMakeFiles/darknet_ros_3d.dir/all] Error 2
make: *** [all] Error 2
Failed <<< darknet_ros_3d [22.0s, exited with code 2]
from gb_visual_detection_3d.
I have the same question.How do you solve it?
from gb_visual_detection_3d.
Related Issues (20)
- std::out_of_range HOT 2
- Any rosbag with intel realsense camera topics available for test ??
- Why is it important to use "depth_registered/points" topic instead of "depth/points" ?
- c++: internal compiler error: Segmentation fault (program cc1plus) HOT 5
- No bounding boxes published HOT 1
- some question about gb_visual_detection_3d_msgs? HOT 1
- I want use in gazebo...but I got 'std::out_of_range' error HOT 1
- error: no matching function for call to ‘tf2_ros::Buffer::lookupTransform(std::cxx11::string&, std_msgs::msg::Header<std::allocator >::frame_id_type&, std_msgs::msg::Header<std::allocator >::stamp_type&, tf2::Duration)’ point_cloud.header.stamp, tf2::durationFromSec(2.0)); HOT 5
- Ros Galactic topic camera\depth\registered\point with qos-reliability best-effort HOT 1
- Can I use this package without darknet_ros (2d) ? HOT 2
- Error on catkin_make HOT 3
- Is it possible to visualize tf of the object relative to camera? HOT 1
- Cannot load message class for [gb_visual_detection_3d_msgs/BoundingBoxes3d]
- Why the orientation is the same? HOT 2
- Marker is not at the center of boundingboxes3D
- Why sometimes bounding box marker doesn't appear in rviz? HOT 2
- several errors HOT 5
- for yolov7_ros HOT 1
- Advice to use USB Camera+LIDAR instead of RGB-D camera?
- Quick Start >Instalation>catkin_make Error HOT 2
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 gb_visual_detection_3d.