-
Notifications
You must be signed in to change notification settings - Fork 10
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
deploy in A1 #2
Comments
Hi @D-jojo As it is written in the readme, you need to follow these steps to avoid memory locking:
If that does not work for you, do these steps
|
Hi, |
Hi @D-jojo, It seems that the problem is in the sdk. I am using this sdk version (https://github.com/unitreerobotics/unitree_legged_sdk/releases/tag/v3.3.1). Can you try to reinstall the sdk and put the lib files in this directory https://github.com/antonilo/vision_locomotion/tree/master/controller/lib? Also, can you launch the examples from the SDK? |
Hi @antonilo, I’m studying this repo CMS and your pre-work RMA, both work attractive to me. No issues encountered when I trainning a model with the later , but encountering the same problem with Deng when catkin build the former, I try to rewrite the CMakeLists.txt with catkin instead of catkin_simple, and got the same error. I cannot figure out the problem, could you give me some help? Thanks a lot! the error as following: Errors << agile_locomotion:make /home/xy/cms_ws/catkin_cms/logs/agile_locomotion/build.make.000.log |
Can you describe your setup? Which compute and ROS are you using? |
Hi @antonilo |
it looks like you have a problem with ROS. Can you build other packages? Can you try to run one of the ros tutorials and see if everything works? |
I have solved this problem with the help of Deng, Because I didn't expect that must download a c++ type of torch(named libtorch) and placed in the path:/home/xx/. Thank you anyway. |
what exactly did you download/change? Would you mind adding a pull request on the README? |
there are some steps for it. |
found some differences between desktop(with one GPU at least) and robot computer(without GPU): |
Thank you for your reply. I have solved my problem according to your prompt. Thank you very much! |
Hi, @xyyl @boyuandeng The error is as follows: I downloaded libtorch according to your method, but the above error still occurred,,can you help me solve this error? |
@D-jojo Hi |
@boyuandeng Hi, |
@boyuandeng Hi, CMake Error at /home/xyb/anaconda3/envs/cms/lib/python3.8/site-packages/torch/share/cmake/Caffe2/public/cuda.cmake:59 (find_package): Could not find a package configuration file provided by "CUDAToolkit" with
Add the installation prefix of "CUDAToolkit" to CMAKE_PREFIX_PATH or set |
@D-jojo Hi Could you show me your CMakeList? |
@boyuandeng Hi, add_compile_options(-std=c++17) find_package(catkin_simple REQUIRED COMPONENTS) list(APPEND CMAKE_PREFIX_PATH "~/libtorch") catkin_package( #include_directories(include) include_directories("~/libtorch/include") set(EXTRA_LIBS -pthread libunitree_legged_sdk_amd64.so lcm) cs_add_library(low_level src/low_level.cpp) cs_add_library(cpp_policy src/cpp_policy.cpp) cs_add_executable(agile_locomotion src/agile_locomotion.cpp) cs_install() |
@D-jojo Hi, sorry for reply you too late.(busy with other things It's seem like that your cmakelist without any error. but as I mentioned previously, please make sure install CUDAToolkit or add the path of it to CMAKE_PREFIX_PATH |
@xyyl @boyuandeng @D-jojo Hello, I tried to download the libtorch and place it in the path:/home/xx/. However, the problem "agile_locomotion::AgileLocomotion::loadParameters()': agile_locomotion.cpp:(.text+0x751): undefined reference to" still happened. |
@antonilo @boyuandeng Hi, |
@antonilo @boyuandeng @xyyl Here is file (link.txt) which we fetched from our project working folder (build/agile_locomotion/CMakeFiles/agile_locomotion.dir/link.txt), we found there are too many redundant library path, I don't know how to modify the "CMakefile.txt" (in 'src/agile_locomotion/controller'?? ) or some other file to fix this issue. Does anyone have the idea? Thank you for the help. |
Hi,
Thank you very much for sharing the code. I want to deploy the policy to the A1 robot now, but I have encountered a problem. After running the following two commands:
roslaunch agile_locomotion cms_ros.launch
rostopic pub /agile_locomotion/walk std_msgs/Empty "{}" -1
I encountered an error as follows:lock memory failed.
What's going on here? I look forward to your reply.
Thank you again!
The text was updated successfully, but these errors were encountered: