Skip to content

Commit

Permalink
can change lcm block period
Browse files Browse the repository at this point in the history
  • Loading branch information
TrivasZhang committed Dec 7, 2021
1 parent 617ce8f commit 597a66a
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ link_directories(lib)

add_compile_options(-std=c++11)

set(EXTRA_LIBS -pthread libunitree_legged_sdk.so lcm)
set(EXTRA_LIBS -pthread libunitree_legged_sdk_amd64.so lcm)

set(CMAKE_CXX_FLAGS "-O3 -fPIC")

Expand Down Expand Up @@ -42,4 +42,4 @@ target_link_libraries(udp_recv_test ${EXTRA_LIBS})


add_executable(lcm_receiver_low examples/lcm_receiver_low.cpp)
target_link_libraries(lcm_receiver_low ${EXTRA_LIBS})
target_link_libraries(lcm_receiver_low ${EXTRA_LIBS})
1 change: 1 addition & 0 deletions include/unitree_legged_sdk/lcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ namespace UNITREE_LEGGED_SDK
void Get(LowCmd&);
void Get(HighState&);
void Get(LowState&);
void SetOverTime(float); // unit:second, will block this long, default 2ms

LCMHandler<HighState> highStateLCMHandler;
LCMHandler<LowState> lowStateLCMHandler;
Expand Down
Binary file modified lib/libunitree_legged_sdk_amd64.so
Binary file not shown.
Binary file modified lib/libunitree_legged_sdk_arm32.so
Binary file not shown.
Binary file modified lib/libunitree_legged_sdk_arm64.so
Binary file not shown.

0 comments on commit 597a66a

Please sign in to comment.