RuanJY / SLAMesh

ICRA2023, A real-time LiDAR simultaneous localization and meshing method.
GNU General Public License v3.0
362 stars 47 forks source link

error while loading shared libraries: liblvr2rply.so: cannot open shared object file #6

Closed JACKLiuDay closed 1 year ago

JACKLiuDay commented 1 year ago

HI, thank you for your great job. I met some problem when I launch the slamesh_online.launch. It looks like some .so file is missed. But I installed lvr2 successfully. Could you give some advice.

image

RuanJY commented 1 year ago

@ybwang99 can you solve it because you seems to have similar problem before?

JACKLiuDay commented 1 year ago

@ybwang99 can you solve it because you seems to have similar problem before?

Hi, thank you for your quick reply. I just solved this problem by change ~/.bashrc. It looks like my ros env path changed. By the way, I want to use slamesh for my biped robot to make foothold planning on the stair. Can the mesh provide the elevation value?

RuanJY commented 1 year ago

I can provide some information; hope they can help you:

  1. The mesh map is a 3D representation, so you can obtain elevation. Especially in SLAMesh, you can inquire about the elevation on a certain x-y position straightforwardly. A simple way may be to find the cell in which your inquiry position lies, and then in layer Z (prediction direction is z), you can inquiry the closet vertices, and their value in z coordinate is elevation. I think layer Z is similar to the elevation map. 2, mesh-tool supports some navigation functions; you may find something helpful in their project.

    发件人: Dayu @.> 发送时间: 2023年8月25日 14:23 收件人: RuanJY/SLAMesh @.> 抄送: RUAN, Jianyuan [Student] @.>; Comment @.> 主题: Re: [RuanJY/SLAMesh] error while loading shared libraries: liblvr2rply.so: cannot open shared object file (Issue #6)

@ybwang99https://github.com/ybwang99 can you solve it because you seems to have similar problem before?

Hi, thank you for your quick reply. I just solved this problem by change ~/.bashrc. It looks like my ros env path changed. By the way, I want to use slamesh for my biped robot to make foothold planning on the stair. Can the mesh provide the elevation value?

― Reply to this email directly, view it on GitHubhttps://github.com/RuanJY/SLAMesh/issues/6#issuecomment-1692830601, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF3YWJBXR2OEMPMBNWUEOUTXXBAGHANCNFSM6AAAAAA354JN74. You are receiving this because you commented.Message ID: @.***>

[https://www.polyu.edu.hk/emaildisclaimer/PolyU_Email_Signature.jpg]

Disclaimer:

This message (including any attachments) contains confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this message and notify the sender and The Hong Kong Polytechnic University (the University) immediately. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited and may be unlawful.

The University specifically denies any responsibility for the accuracy or quality of information obtained through University E-mail Facilities. Any views and opinions expressed are only those of the author(s) and do not necessarily represent those of the University and the University accepts no liability whatsoever for any losses or damages incurred or caused to any party as a result of the use of such information.

JACKLiuDay commented 1 year ago

I can provide some information; hope they can help you: 1. The mesh map is a 3D representation, so you can obtain elevation. Especially in SLAMesh, you can inquire about the elevation on a certain x-y position straightforwardly. A simple way may be to find the cell in which your inquiry position lies, and then in layer Z (prediction direction is z), you can inquiry the closet vertices, and their value in z coordinate is elevation. I think layer Z is similar to the elevation map. 2, mesh-tool supports some navigation functions; you may find something helpful in their project. ____ 发件人: Dayu @.> 发送时间: 2023年8月25日 14:23 收件人: RuanJY/SLAMesh @.> 抄送: RUAN, Jianyuan [Student] @.>; Comment @.> 主题: Re: [RuanJY/SLAMesh] error while loading shared libraries: liblvr2rply.so: cannot open shared object file (Issue #6) @ybwang99https://github.com/ybwang99 can you solve it because you seems to have similar problem before? Hi, thank you for your quick reply. I just solved this problem by change ~/.bashrc. It looks like my ros env path changed. By the way, I want to use slamesh for my biped robot to make foothold planning on the stair. Can the mesh provide the elevation value? ― Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF3YWJBXR2OEMPMBNWUEOUTXXBAGHANCNFSM6AAAAAA354JN74. You are receiving this because you commented.Message ID: @.***> [https://www.polyu.edu.hk/emaildisclaimer/PolyU_Email_Signature.jpg] Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this message and notify the sender and The Hong Kong Polytechnic University (the University) immediately. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited and may be unlawful. The University specifically denies any responsibility for the accuracy or quality of information obtained through University E-mail Facilities. Any views and opinions expressed are only those of the author(s) and do not necessarily represent those of the University and the University accepts no liability whatsoever for any losses or damages incurred or caused to any party as a result of the use of such information.

Hi, thank you for your reply. I will try to get the elevation value with mesh map.

JACKLiuDay commented 1 year ago

I can provide some information; hope they can help you: 1. The mesh map is a 3D representation, so you can obtain elevation. Especially in SLAMesh, you can inquire about the elevation on a certain x-y position straightforwardly. A simple way may be to find the cell in which your inquiry position lies, and then in layer Z (prediction direction is z), you can inquiry the closet vertices, and their value in z coordinate is elevation. I think layer Z is similar to the elevation map. 2, mesh-tool supports some navigation functions; you may find something helpful in their project. ____ 发件人: Dayu @.> 发送时间: 2023年8月25日 14:23 收件人: RuanJY/SLAMesh @.> 抄送: RUAN, Jianyuan [Student] @.>; Comment @.> 主题: Re: [RuanJY/SLAMesh] error while loading shared libraries: liblvr2rply.so: cannot open shared object file (Issue #6) @ybwang99https://github.com/ybwang99 can you solve it because you seems to have similar problem before? Hi, thank you for your quick reply. I just solved this problem by change ~/.bashrc. It looks like my ros env path changed. By the way, I want to use slamesh for my biped robot to make foothold planning on the stair. Can the mesh provide the elevation value? ― Reply to this email directly, view it on GitHub<#6 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AF3YWJBXR2OEMPMBNWUEOUTXXBAGHANCNFSM6AAAAAA354JN74. You are receiving this because you commented.Message ID: @.***> [https://www.polyu.edu.hk/emaildisclaimer/PolyU_Email_Signature.jpg] Disclaimer: This message (including any attachments) contains confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this message and notify the sender and The Hong Kong Polytechnic University (the University) immediately. Any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited and may be unlawful. The University specifically denies any responsibility for the accuracy or quality of information obtained through University E-mail Facilities. Any views and opinions expressed are only those of the author(s) and do not necessarily represent those of the University and the University accepts no liability whatsoever for any losses or damages incurred or caused to any party as a result of the use of such information.

By the way, I'd like to ask, what is the precision of each triangle block in a mesh map? In robot's footfall planning, the subdivision precision for each elevation grid could potentially reach 2cm per grid. Some relevant work is reflected in elevation map. https://github.com/ANYbotics/elevation_mapping

BloodLemonS commented 1 year ago

@ybwang99 can you solve it because you seems to have similar problem before?

Hi, thank you for your quick reply. I just solved this problem by change ~/.bashrc. It looks like my ros env path changed. By the way, I want to use slamesh for my biped robot to make foothold planning on the stair. Can the mesh provide the elevation value?

Could you please tell me the details of how to solve it? I had the same problem at runtime

sco09 commented 11 months ago

@ybwang99 can you solve it because you seems to have similar problem before?

Hi, thank you for your quick reply. I just solved this problem by change ~/.bashrc. It looks like my ros env path changed. By the way, I want to use slamesh for my biped robot to make foothold planning on the stair. Can the mesh provide the elevation value?

Could you please tell me the details of how to solve it? I had the same problem at runtime

my file location is /usr/local/lib/liblvr2rply.so So after I added this directory into below environment variable, it works export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH

This is a temporary way to add this environment variable, only valid in current terminal

ybwang99 commented 2 months ago

@ybwang99 can you solve it because you seems to have similar problem before?

Hi, thank you for your quick reply. I just solved this problem by change ~/.bashrc. It looks like my ros env path changed. By the way, I want to use slamesh for my biped robot to make foothold planning on the stair. Can the mesh provide the elevation value?

Could you please tell me the details of how to solve it? I had the same problem at runtime

I missed the message, sorry for the late response! I think this problem is caused by the installation path of the lvr2 library. The shared libraries produced by lvr2 during the compile process are not linked to the path "/usr/lib" but SLAMesh needs to find it here.

So we need to copy the generated shared libraries in the "build" folder after compiling lvr2 library to "/usr/lib" by the following command: sudo cp -r /home/slamesh/lib/lvr2/build/lib/* /usr/lib/ # replace /home/slamesh/lib to your installed path