Skip to content

Commit

Permalink
fix: clear up
Browse files Browse the repository at this point in the history
  • Loading branch information
fan-ziqi committed Mar 14, 2024
1 parent bef47f7 commit 2794537
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 196 deletions.
6 changes: 2 additions & 4 deletions src/unitree_rl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ catkin_package(
include_directories(library/unitree_legged_sdk_3.2/include)
link_directories(library/unitree_legged_sdk_3.2/lib)
set(EXTRA_LIBS -pthread libunitree_legged_sdk_amd64.so lcm)
add_executable(lcm_server $ENV{UNITREE_LEGGED_SDK_PATH}/examples/lcm_server.cpp)
target_link_libraries(lcm_server ${EXTRA_LIBS} ${catkin_LIBRARIES})

include_directories(
include
Expand All @@ -41,11 +39,11 @@ include_directories(

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GAZEBO_CXX_FLAGS}")

add_library(model lib/model.cpp lib/model.hpp)
add_library(model library/model/model.cpp library/model/model.hpp)
target_link_libraries(model "${TORCH_LIBRARIES}")
set_property(TARGET model PROPERTY CXX_STANDARD 14)

add_library(observation_buffer lib/observation_buffer.cpp lib/observation_buffer.hpp)
add_library(observation_buffer library/observation_buffer/observation_buffer.cpp library/observation_buffer/observation_buffer.hpp)
target_link_libraries(observation_buffer "${TORCH_LIBRARIES}")
set_property(TARGET observation_buffer PROPERTY CXX_STANDARD 14)

Expand Down
187 changes: 0 additions & 187 deletions src/unitree_rl/include/convert.h

This file was deleted.

4 changes: 2 additions & 2 deletions src/unitree_rl/include/unitree_rl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
#include <gazebo_msgs/ModelStates.h>
#include <sensor_msgs/JointState.h>
#include <geometry_msgs/Twist.h>
#include "../lib/model.cpp"
#include "../lib/observation_buffer.hpp"
#include "../library/model/model.hpp"
#include "../library/observation_buffer/observation_buffer.hpp"
#include "unitree_legged_msgs/MotorCmd.h"

class Unitree_RL : public Model
Expand Down
8 changes: 5 additions & 3 deletions src/unitree_rl/include/unitree_rl_real.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
#include <gazebo_msgs/ModelStates.h>
#include <sensor_msgs/JointState.h>
#include <geometry_msgs/Twist.h>
#include "../lib/model.cpp"
#include "../lib/observation_buffer.hpp"
#include "../library/model/model.hpp"
#include "../library/observation_buffer/observation_buffer.hpp"
#include <unitree_legged_msgs/LowCmd.h>
#include "unitree_legged_msgs/LowState.h"
#include "convert.h"
#include <unitree_legged_msgs/MotorCmd.h>
#include <unitree_legged_msgs/MotorState.h>
#include "unitree_legged_sdk/unitree_legged_sdk.h"
#include <pthread.h>

using namespace UNITREE_LEGGED_SDK;
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2794537

Please sign in to comment.