c++14 is required
This commit is contained in:
parent
1fac4d8be3
commit
712fc7c7b2
|
@ -1,7 +1,8 @@
|
||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
project(z1_sdk)
|
project(z1_sdk)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -O3 -pthread")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -pthread")
|
||||||
|
set(CMAKE_CXX_STANDARD_REQUIRED on)
|
||||||
|
set(CMAKE_CXX_STANDARD 14)
|
||||||
set(EIGEN_PATH /usr/include/eigen3)
|
set(EIGEN_PATH /usr/include/eigen3)
|
||||||
include_directories(
|
include_directories(
|
||||||
include
|
include
|
||||||
|
|
|
@ -4,6 +4,8 @@ import unitree_arm_interface
|
||||||
import time
|
import time
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
print("Press ctrl+\ to quit process.")
|
||||||
|
|
||||||
np.set_printoptions(precision=3, suppress=True)
|
np.set_printoptions(precision=3, suppress=True)
|
||||||
arm = unitree_arm_interface.ArmInterface(hasGripper=True)
|
arm = unitree_arm_interface.ArmInterface(hasGripper=True)
|
||||||
armState = unitree_arm_interface.ArmFSMState
|
armState = unitree_arm_interface.ArmFSMState
|
||||||
|
|
|
@ -4,6 +4,8 @@ import unitree_arm_interface
|
||||||
import time
|
import time
|
||||||
import numpy as np
|
import numpy as np
|
||||||
|
|
||||||
|
print("Press ctrl+\ to quit process.")
|
||||||
|
|
||||||
np.set_printoptions(precision=3, suppress=True)
|
np.set_printoptions(precision=3, suppress=True)
|
||||||
arm = unitree_arm_interface.ArmInterface(hasGripper=True)
|
arm = unitree_arm_interface.ArmInterface(hasGripper=True)
|
||||||
armModel = arm._ctrlComp.armModel
|
armModel = arm._ctrlComp.armModel
|
||||||
|
|
Loading…
Reference in New Issue