Skip to content

Commit

Permalink
implement EmergencyStopper and add sample script
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurooka committed Jun 18, 2015
1 parent bf3795a commit 3b4951b
Show file tree
Hide file tree
Showing 8 changed files with 377 additions and 212 deletions.
3 changes: 2 additions & 1 deletion idl/EmergencyStopperService.idl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module OpenHRP
{
interface EmergencyStopperService
{
void echo(in string msg);
void stopMotion();
void releaseMotion();
};
};

Expand Down
4 changes: 2 additions & 2 deletions python/hrpsys_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,10 +643,10 @@ def getRTCListUnstable(self):
['kf', "KalmanFilter"],
['vs', "VirtualForceSensor"],
['rmfo', "RemoveForceSensorLinkOffset"],
['es', "EmergencyStopper"],
['ic', "ImpedanceController"],
['abc', "AutoBalancer"],
['st', "Stabilizer"],
['es', "EmergencyStopper"],
['co', "CollisionDetector"],
['tc', "TorqueController"],
# ['te', "ThermoEstimator"],
Expand All @@ -659,7 +659,7 @@ def getJointAngleControllerList(self):
'''!@brief
Get list of controller list that need to control joint angles
'''
controller_list = [self.ic, self.gc, self.abc, self.st, self.co,
controller_list = [self.es, self.ic, self.gc, self.abc, self.st, self.co,
self.tc, self.el]
return filter(lambda c: c != None, controller_list) # only return existing controllers

Expand Down
6 changes: 4 additions & 2 deletions rtc/EmergencyStopper/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
set(comp_sources EmergencyStopper.cpp EmergencyStopperService_impl.cpp)
set(libs hrpsysBaseStub)
set(seq_dir ${PROJECT_SOURCE_DIR}/rtc/SequencePlayer)
set(comp_sources ${seq_dir}/interpolator.cpp EmergencyStopper.cpp EmergencyStopperService_impl.cpp)
set(libs hrpModel-3.1 hrpUtil-3.1 hrpsysBaseStub)
include_directories(${seq_dir})
add_library(EmergencyStopper SHARED ${comp_sources})
target_link_libraries(EmergencyStopper ${libs})
set_target_properties(EmergencyStopper PROPERTIES PREFIX "")
Expand Down
Loading

0 comments on commit 3b4951b

Please sign in to comment.