parent
d422b91f6b
commit
8bc209f33b
|
@ -17,15 +17,13 @@ if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64.*")
|
||||||
else()
|
else()
|
||||||
set(ARCH arm64)
|
set(ARCH arm64)
|
||||||
endif()
|
endif()
|
||||||
set(LEGGED_SDK_NAME -pthread libunitree_legged_sdk_${ARCH}.so lcm)
|
|
||||||
|
|
||||||
set(EXTRA_LIBS ${LEGGED_SDK_NAME} lcm)
|
link_directories(${CMAKE_SOURCE_DIR}/unitree_legged_sdk/lib/cpp/${ARCH})
|
||||||
|
|
||||||
|
set(EXTRA_LIBS -pthread libunitree_legged_sdk.so)
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS "-O3 -fPIC")
|
set(CMAKE_CXX_FLAGS "-O3 -fPIC")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
include_directories(
|
include_directories(
|
||||||
include
|
include
|
||||||
${catkin_INCLUDE_DIRS}
|
${catkin_INCLUDE_DIRS}
|
||||||
|
@ -34,7 +32,7 @@ include_directories(
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
link_directories(${CMAKE_SOURCE_DIR}/unitree_legged_sdk/lib)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -62,3 +60,4 @@ add_dependencies(control_via_keyboard ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catk
|
||||||
add_executable(twist_sub src/exe/twist_sub.cpp)
|
add_executable(twist_sub src/exe/twist_sub.cpp)
|
||||||
target_link_libraries(twist_sub ${EXTRA_LIBS} ${catkin_LIBRARIES})
|
target_link_libraries(twist_sub ${EXTRA_LIBS} ${catkin_LIBRARIES})
|
||||||
add_dependencies(twist_sub ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
add_dependencies(twist_sub ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
|
||||||
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
sudo ifconfig lo multicast
|
|
||||||
sudo route add -net 224.0.0.0 netmask 240.0.0.0 dev lo
|
|
||||||
|
|
||||||
sudo ifconfig enx000ec6612921 down
|
|
||||||
sudo ifconfig enx000ec6612921 up 192.168.123.162 netmask 255.255.255.0
|
|
||||||
|
|
|
@ -24,7 +24,9 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Custom()
|
Custom()
|
||||||
: low_udp(LOWLEVEL),
|
:
|
||||||
|
// low_udp(LOWLEVEL),
|
||||||
|
low_udp(LOWLEVEL, 8091, "192.168.123.10", 8007),
|
||||||
high_udp(8090, "192.168.123.161", 8082, sizeof(HighCmd), sizeof(HighState))
|
high_udp(8090, "192.168.123.161", 8082, sizeof(HighCmd), sizeof(HighState))
|
||||||
{
|
{
|
||||||
high_udp.InitCmdData(high_cmd);
|
high_udp.InitCmdData(high_cmd);
|
||||||
|
|
|
@ -24,7 +24,9 @@ public:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Custom()
|
Custom()
|
||||||
: low_udp(LOWLEVEL),
|
:
|
||||||
|
// low_udp(LOWLEVEL),
|
||||||
|
low_udp(LOWLEVEL, 8091, "192.168.123.10", 8007),
|
||||||
high_udp(8090, "192.168.123.161", 8082, sizeof(HighCmd), sizeof(HighState))
|
high_udp(8090, "192.168.123.161", 8082, sizeof(HighCmd), sizeof(HighState))
|
||||||
{
|
{
|
||||||
high_udp.InitCmdData(high_cmd);
|
high_udp.InitCmdData(high_cmd);
|
||||||
|
|
Loading…
Reference in New Issue