Comments (5)
Can you please provide more information. Which version of ROS 2 have you built? Is there any error output? Have you tried running the bridge with gdb
to get more information what happened?
from ros1_bridge.
dynamic_bridge
will crash with the following error:
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_M_create
Aborted
I ran it in GDB, and here is the stacktrace:
#0 0x00007ffff1979428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#1 0x00007ffff197b02a in __GI_abort () at abort.c:89
#2 0x00007ffff1fb284d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#3 0x00007ffff1fb06b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#4 0x00007ffff1fb0701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#5 0x00007ffff1fb0919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#6 0x00007ffff1fd926f in std::__throw_length_error(char const*) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#7 0x00007ffff2042099 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_create(unsigned long&, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#8 0x0000000000460b1a in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::forward_iterator_tag) ()
#9 0x000000000045cc08 in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct_aux<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::__false_type) ()
#10 0x00000000004579ee in void std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_construct<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > >(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >) ()
#11 0x0000000000453b22 in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string<__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, void>(__gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char const*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<char> const&) ()
#12 0x000000000044d4cf in main::{lambda()#2}::operator()() const ()
#13 0x0000000000450284 in void rclcpp::timer::GenericTimer<main::{lambda()#2}, std::chrono::_V2::steady_clock, (void*)0>::execute_callback_delegate<{lambda()#2}, (std::chrono::_V2::steady_clock)0>() ()
#14 0x0000000000450133 in rclcpp::timer::GenericTimer<main::{lambda()#2}, std::chrono::_V2::steady_clock, (void*)0>::execute_callback() ()
#15 0x00007ffff7476acf in rclcpp::executor::Executor::execute_timer(std::shared_ptr<rclcpp::timer::TimerBase>) () from /home/jhoare/projects/remotework/ros2_ws/install/lib/librclcpp.so
#16 0x00007ffff74765ce in rclcpp::executor::Executor::execute_any_executable(std::shared_ptr<rclcpp::executor::AnyExecutable>) () from /home/jhoare/projects/remotework/ros2_ws/install/lib/librclcpp.so
#17 0x00007ffff747635c in rclcpp::executor::Executor::spin_once(std::chrono::duration<long, std::ratio<1l, 1000000000l> >) () from /home/jhoare/projects/remotework/ros2_ws/install/lib/librclcpp.so
#18 0x00007ffff7475db6 in rclcpp::executor::Executor::spin_node_once_nanoseconds(std::shared_ptr<rclcpp::node_interfaces::NodeBaseInterface>, std::chrono::duration<long, std::ratio<1l, 1000000000l> >) () from /home/jhoare/projects/remotework/ros2_ws/install/lib/librclcpp.so
#19 0x0000000000455019 in void rclcpp::executor::Executor::spin_node_once<rclcpp::node::Node, std::ratio<1l, 1000l> >(std::shared_ptr<rclcpp::node::Node>, std::chrono::duration<long, std::ratio<1l, 1000l> >) ()
#20 0x000000000044e841 in main ()
I built from source following the instructions here: https://github.com/ros2/ros2/wiki/Linux-Development-Setup it looks like it has checked out the release-beta1 branch/tag on all of the repositories.
The image example works correctly on my machine.
from ros1_bridge.
I get the same error when publishing laserscan msgs. Using the latest version built from source.
from ros1_bridge.
the bug was introduced in here: #36
I'll follow up the discussion on the referenced PR.
from ros1_bridge.
Should be fixed by #58, @Karsten1987 tested it.
from ros1_bridge.
Related Issues (20)
- Bridge generates and compiles code for all ROS 2 interfaces, even the ones without ROS 1 counterpart HOT 2
- ROS1 Bridge not working.
- symbol lookup error HOT 1
- Mapping rules file for nested custom messages
- Many packages not found by find_ros1_package() during build
- Data Type conversion directly
- Unstable behavior of std::bad_alloc HOT 2
- help wirh ros melodic and dashing bridg (it failed) HOT 1
- ros1_bridge dashing problem HOT 3
- ROS2 Foxy: bridge causing continuous errors from realsense on depth image HOT 3
- ROS2 Humble: how can I subscribe topic?
- No executable found ros1_bridge on Ubuntu 20.04 with ROS2 Humble and ROS Noetic
- ros bridge is crashing as soon as I try to run it. HOT 2
- The factors affecting the maximum frequency of topics in the ROS1 bridge HOT 1
- parameter bridge ability to rename topic
- can map custom srv but msg
- ros1_brigde cannot convert ros1bag data into ros2bag because of Qos mismatch
- build fail in Ubuntu 22.04
- ros1_bridge build error in Windows HOT 1
- Build with ROS2 Jazzy and ROS noetic HOT 1
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 ros1_bridge.