Comments (4)
It's not clear what is causing the segfault. What is clear is that you are not using the correct Fast-RTPS-Gen version, which should be 1.0.4.
from px4_ros_com.
I have rebuilt fastrtpsgen and now have version 1.0.4 installed.
$ /usr/local/bin/fastrtpsgen -version
openjdk version "11.0.7" 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)
fastrtpsgen version 1.0.4
I have deleted my px4_ros_com directory containing source and all build files. I have then cloned the px4_msgs and px4_ros_com repos and rebuilt.
The seg fault is still happening. Thinking it might possibly be a version problem with the libraries that fastrtpsgen is using, I have included the output from ldd.
$ ldd /home/andy/px4/ros_com/install/px4_ros_com/bin/micrortps_agent
linux-vdso.so.1 (0x00007fff57564000)
libfastrtps.so.1 => /opt/ros/eloquent/lib/libfastrtps.so.1 (0x00007fba334b9000)
libfastcdr.so.1 => /opt/ros/eloquent/lib/libfastcdr.so.1 (0x00007fba332a7000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fba33088000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fba32cff000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fba32961000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fba32749000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fba32358000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fba32154000)
libtinyxml2.so.6 => /usr/lib/x86_64-linux-gnu/libtinyxml2.so.6 (0x00007fba31f40000)
libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fba31cb3000)
libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fba317e8000)
/lib64/ld-linux-x86-64.so.2 (0x00007fba33f4e000)
These are the library versions being used:
$ ll /opt/ros/eloquent/lib/libfast*
lrwxrwxrwx 1 root root 15 Dec 13 04:13 /opt/ros/eloquent/lib/libfastcdr.so -> libfastcdr.so.1
lrwxrwxrwx 1 root root 20 Dec 13 04:13 /opt/ros/eloquent/lib/libfastcdr.so.1 -> libfastcdr.so.1.0.10
-rw-r--r-- 1 root root 72480 Dec 13 04:13 /opt/ros/eloquent/lib/libfastcdr.so.1.0.10
lrwxrwxrwx 1 root root 16 Feb 18 17:47 /opt/ros/eloquent/lib/libfastrtps.so -> libfastrtps.so.1
lrwxrwxrwx 1 root root 20 Feb 18 17:47 /opt/ros/eloquent/lib/libfastrtps.so.1 -> libfastrtps.so.1.9.3
-rw-r--r-- 1 root root 5954248 Feb 18 17:47 /opt/ros/eloquent/lib/libfastrtps.so.1.9.3
Could it be that I need to build a different version of the other fast* libraries to pick up the fix you mentioned in another thread?
from px4_ros_com.
I have rebuilt fastrtpsgen and now have version 1.0.4 installed.
$ /usr/local/bin/fastrtpsgen -version openjdk version "11.0.7" 2020-04-14 OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04) OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing) fastrtpsgen version 1.0.4
I have deleted my px4_ros_com directory containing source and all build files. I have then cloned the px4_msgs and px4_ros_com repos and rebuilt.
The seg fault is still happening. Thinking it might possibly be a version problem with the libraries that fastrtpsgen is using, I have included the output from ldd.
$ ldd /home/andy/px4/ros_com/install/px4_ros_com/bin/micrortps_agent linux-vdso.so.1 (0x00007fff57564000) libfastrtps.so.1 => /opt/ros/eloquent/lib/libfastrtps.so.1 (0x00007fba334b9000) libfastcdr.so.1 => /opt/ros/eloquent/lib/libfastcdr.so.1 (0x00007fba332a7000) libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fba33088000) libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fba32cff000) libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fba32961000) libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fba32749000) libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fba32358000) libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fba32154000) libtinyxml2.so.6 => /usr/lib/x86_64-linux-gnu/libtinyxml2.so.6 (0x00007fba31f40000) libssl.so.1.1 => /usr/lib/x86_64-linux-gnu/libssl.so.1.1 (0x00007fba31cb3000) libcrypto.so.1.1 => /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 (0x00007fba317e8000) /lib64/ld-linux-x86-64.so.2 (0x00007fba33f4e000)These are the library versions being used:
$ ll /opt/ros/eloquent/lib/libfast* lrwxrwxrwx 1 root root 15 Dec 13 04:13 /opt/ros/eloquent/lib/libfastcdr.so -> libfastcdr.so.1 lrwxrwxrwx 1 root root 20 Dec 13 04:13 /opt/ros/eloquent/lib/libfastcdr.so.1 -> libfastcdr.so.1.0.10 -rw-r--r-- 1 root root 72480 Dec 13 04:13 /opt/ros/eloquent/lib/libfastcdr.so.1.0.10 lrwxrwxrwx 1 root root 16 Feb 18 17:47 /opt/ros/eloquent/lib/libfastrtps.so -> libfastrtps.so.1 lrwxrwxrwx 1 root root 20 Feb 18 17:47 /opt/ros/eloquent/lib/libfastrtps.so.1 -> libfastrtps.so.1.9.3 -rw-r--r-- 1 root root 5954248 Feb 18 17:47 /opt/ros/eloquent/lib/libfastrtps.so.1.9.3Could it be that I need to build a different version of the other fast* libraries to pick up the fix you mentioned in another thread?
This might be actually a problem with the agent itself and how it closes the application. I will dig in further when I have some time. Thanks for reporting.
from px4_ros_com.
This was solved meanwhile. Closing.
from px4_ros_com.
Related Issues (20)
- Could not compile micrortps_agent HOT 7
- Problems including frame_transforms.h HOT 3
- Compatible version with PX4-Autopilot to use rtps HOT 4
- Build Error with px4_ros_com HOT 1
- The automated release is failing 🚨
- /fmu/out topics missing when micro_ros_agent is restarted HOT 1
- Build error on v.1.13 using rtps
- Error occurs while colcon build
- Multi instance uorb-ros2 topic transfering HOT 1
- Possible wrong conversion in frame_transforms.h HOT 2
- How to transform angular velocity using frame_transfroms.h ? HOT 4
- frame_transforms.h/cpp library HOT 4
- Debugging failure to switch to offboard HOT 2
- colcon build fail with stderr HOT 1
- Confusing description & links to documentation HOT 2
- Humble build is broken due to no docker container HOT 1
- Can not start ROS2 Offboard example with PX4 v1.14.0 HOT 2
- how to use offboard_control.py as an executable? HOT 1
- Sending RTCM correction data from ros2 to PX4 FC using MicroXRCEAgent
- Does the offboard_control_srv.cpp work? 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 px4_ros_com.