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

Problem with optimization function "error: Parsing coordinates for the following line" #18

Open
mounchiliu opened this issue Feb 20, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@mounchiliu
Copy link

Hi there, I got a problem when I tried to run the optimization node with the example data provided.
I run the order as the README.md file illustrated, but I got problem when run

  • python3 src/main.py --lidar data/example_data/lidar.csv --camera data/exampl
    e_data/camera.csv --radar data/example_data/radar.csv --calibration-mode 3 --visualise

or use rosrun to setup the optimization node

  • rosrun optimization server.py

How can I solve this problem?

@mounchiliu
Copy link
Author

I suppose this problem may be caused by the different version of python.
I solved it by:

  • updating python3.5 to python3.7 and set python3.7 as the default python3 version of the system
  • sudo pip3.7 install rmsd

Then, I rerun the optimization method and got the following problem. I have also attached the solution to each problem as below.

  • ModuleNotFoundError: No module named 'sklearn'
  1. start a new terminal
  2. pip3 install scikit-learn
  • ModuleNotFoundError: No module named 'yaml'
  1. pip3 install pyyaml
  1. pip3 install tikzplotlib
  2. open file that got error, replace 'matplotlib2tikz ' with 'tikzplotlib'. Save the file.
  3. rerun the optimization method to get the result. :)

@mounchiliu
Copy link
Author

mounchiliu commented Feb 22, 2021

I also got a problem

error:transport error completing service call: unable to receive data from sender, check sender's logs for

This can be solved by add the following to the both Cmakelists.txt of accumulator and common profile:

add_definitions(-DEIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT)

catkin_make

@EaiPool
Copy link
Member

EaiPool commented Mar 15, 2021

Hey there,
You are correct on the issue of tikzplotlib, this has been corrected in the latest version.

Many of your other issues (python version, missing sklearn and yaml) can be mitigated by, as you found, installing the dependencies as mentioned in the readme.

This latest issue, however, I cannot reproduce. Can you verify that it does not happen when you have all the dependencies properly installed? Otherwise, can you give more information regarding when it happens? During compilation, runtime, what line, your OS, etc?

@mounchiliu
Copy link
Author

mounchiliu commented Mar 16, 2021

Hey there,
You are correct on the issue of tikzplotlib, this has been corrected in the latest version.

Many of your other issues (python version, missing sklearn and yaml) can be mitigated by, as you found, installing the dependencies as mentioned in the readme.

This latest issue, however, I cannot reproduce. Can you verify that it does not happen when you have all the dependencies properly installed? Otherwise, can you give more information regarding when it happens? During compilation, runtime, what line, your OS, etc?

Hi, I am using ubuntu 16 with ROS Kinetic.
I suppose the issue caused because the default python version provided by system is python 2.7 and python 3.5, which may not compatible with the latest rmsd lib. When I tried to use the library rmsd with python 3.5, it shows the error as I mentioned above. Then, I tried python 3.7, and it works.

@mounchiliu
Copy link
Author

I also got a problem

error:transport error completing service call: unable to receive data from sender, check sender's logs for

This can be solved by add the following to the both Cmakelists.txt of accumulator and common profile:

add_definitions(-DEIGEN_DISABLE_UNALIGNED_ARRAY_ASSERT)

catkin_make

The second problem also comes with the error
Assertion failed: (reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is explained here: " .....

I only got the problem when I was using x86 system to run the code.
I also tried the code on x64 system. The code will not show this kinda problem on x64(amd64) system.

@EaiPool EaiPool added the bug Something isn't working label Mar 17, 2021
@EaiPool
Copy link
Member

EaiPool commented Mar 17, 2021

The second problem also comes with the error
Assertion failed: (reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is explained here: " .....

Can you please put down the entire error log? I cannot really assess this problem without the file and line number where the compilation error occurs.

I suppose the issue caused because the default python version provided by system is python 2.7 and python 3.5, which may not compatible with the latest rmsd lib. When I tried to use the library rmsd with python 3.5, it shows the error as I mentioned above. Then, I tried python 3.7, and it works.

I found one case of f-string formatting which indeed made it impossible to run with older versions of python. However, with that changed, I was able to run the optimization without any problem. As such, I do not think the issue here is rmsd. If you still experience issues with python 3.5, please post the entire error that you get.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants