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

Odom Node Crashes with Non-Ros PCL Binaries #47

Open
geoeo opened this issue Nov 26, 2019 · 6 comments
Open

Odom Node Crashes with Non-Ros PCL Binaries #47

geoeo opened this issue Nov 26, 2019 · 6 comments

Comments

@geoeo
Copy link

geoeo commented Nov 26, 2019

Hello,

I successfully compiled the project on my machine, but when I try to run the rosbag the odom node crashes with the following error in the log file.


  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosmaster/threadpool.py", line 218, in run
    result = cmd(*args)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/rosmaster/master_api.py", line 210, in publisher_update_task
    ret = xmlrpcapi(api).publisherUpdate('/master', topic, pub_uris)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.7/xmlrpclib.py", line 1283, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1316, in single_request
    return self.parse_response(response)
  File "/usr/lib/python2.7/xmlrpclib.py", line 1493, in parse_response
    return u.close()
  File "/usr/lib/python2.7/xmlrpclib.py", line 800, in close
    raise Fault(**self._stack[0])
Fault: <Fault -1: 'publisherUpdate: unknown method name'> 

The commands I use to run are the same as in the Readme.md file

@geoeo
Copy link
Author

geoeo commented Nov 26, 2019

The issue is not ROS melodic. But rather PCL in release mode. I switched to Debug and it works fine. I think I read about this in the LOAM project issus, where ROS has problems with precompiled PCL. Compiling 1.9.1. locally and linking it could solve this. But I only have 1.8.1 locally which doesnt work with LIO

@hyye
Copy link
Owner

hyye commented Nov 26, 2019

Hi @geoeo, I use ROS Melodic with the PCL from apt-get, and it works. Does your log mean that the error is related to the ROS parser or something else? Could you try to run the executives instead of using launch files?

@geoeo
Copy link
Author

geoeo commented Nov 26, 2019

I am running lio_processor_node with clion and I get a mem free error related to PCL only in the realease mode. I have tried with apt-get and locally compiled. Apt-get for me was sudo apt install libpcl-dev

@geoeo
Copy link
Author

geoeo commented Nov 26, 2019

Ps. You can mitigate the performance impact of Debug by set(CMAKE_CXX_FLAGS_Debug "-O3 -Wall -g")

@hyye
Copy link
Owner

hyye commented Nov 26, 2019

Thanks for your suggestion on debugging.
I think it is the default PCL from melodic-desktop-full, since I didn't explicitly install libpcl-dev with apt. You may check with the docker example for more details.
I cannot reproduce this issue. Could it be related to the version of PCL or some configurations of compiling?

@geoeo
Copy link
Author

geoeo commented Nov 26, 2019

docker works fine. I think its compiling configurations of PCL. But im not enough of a ROS/linux expert to understand what is going on.

@geoeo geoeo changed the title Odom Node Crashes with Ros Melodic Odom Node Crashes with Non-Ros PCL Binaries Nov 27, 2019
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

2 participants