-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* import FSM4RTC idls from http://svn.openrtm.org/OpenRTM-aist/branches/FSM4RTC * add event handler for FSM events * fix typo * add script to compile openrtm-aist fsm4rtc branch for testing * implement setter and getter for property: dynamic * add utility method to get ExtendedFsmService * getter and setter for dynamic was there at node.py * add utility script to run fsm4rtc test component * fix idl prefix issue * increase portability * raise exception when observer service not found * dirty fix for openrtm-aist get_sdo_service bug * revert change made by accident
- Loading branch information
Showing
8 changed files
with
164 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#ifndef _EXTENDED_FSM_SERVICE_IDL_ | ||
#define _EXTENDED_FSM_SERVICE_IDL_ | ||
|
||
#include <RTC.idl> | ||
|
||
#pragma prefix "omg.org" | ||
|
||
module RTC | ||
{ | ||
struct FsmEventProfile | ||
{ | ||
string name; | ||
string data_type; | ||
}; | ||
#pragma version FsmEventProfile 1.0 | ||
typedef sequence<FsmEventProfile> FsmEventProfileList; | ||
|
||
struct FsmStructure | ||
{ | ||
string name; | ||
string structure; | ||
FsmEventProfileList event_profiles; | ||
NVList properties; | ||
}; | ||
#pragma version FsmStructure 1.0 | ||
|
||
interface ExtendedFsmService : SDOPackage::SDOService | ||
{ | ||
string get_current_state(); | ||
ReturnCode_t set_fsm_structure(in FsmStructure fsm_structure); | ||
ReturnCode_t get_fsm_structure(out FsmStructure fsm_structure); | ||
}; | ||
#pragma version ExtendedFsmService 1.0 | ||
}; | ||
|
||
#endif // _EXTENDED_FSM_SERVICE_IDL_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/bash | ||
|
||
BASEDIR=$(dirname $(readlink -f "$0")) | ||
|
||
FSM4RTC_HOME="$BASEDIR/FSM4RTC/OpenRTM-aist" | ||
|
||
$FSM4RTC_HOME/examples/SimpleIO/ConsoleInComp -f $BASEDIR/rtc.conf -o "logger.log_level:DEBUG" -o "sdo.service.provider.enabled_services:ALL" -o "manager.local_service.modules:$FSM4RTC_HOME/src/ext/sdo/fsm4rtc_observer/.libs/ComponentObserverConsumer.so(ComponentObserverConsumerInit),$FSM4RTC_HOME/src/ext/sdo/extended_fsm/.libs/ExtendedFsmServiceProvider.so(ExtendedFsmServiceProviderInit)" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Index: OpenRTM-aist/src/lib/rtm/FsmActionListener.h | ||
=================================================================== | ||
--- OpenRTM-aist/src/lib/rtm/FsmActionListener.h (リビジョン 2806) | ||
+++ OpenRTM-aist/src/lib/rtm/FsmActionListener.h (作業コピー) | ||
@@ -29,9 +29,7 @@ | ||
|
||
namespace RTC | ||
{ | ||
- struct FsmStructure | ||
- { | ||
- }; | ||
+ struct FsmStructure; | ||
/*! | ||
* @if jp | ||
* | ||
Index: OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.cpp | ||
=================================================================== | ||
--- OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.cpp (リビジョン 2806) | ||
+++ OpenRTM-aist/src/lib/rtm/SdoServiceAdmin.cpp (作業コピー) | ||
@@ -82,6 +82,7 @@ | ||
|
||
// If types include '[Aa][Ll][Ll]', all types enabled in this RTC | ||
::coil::vstring activeProviderTypes; | ||
+/* | ||
for (size_t i(0); i < enabledProviderTypes.size(); ++i) | ||
{ | ||
std::string tmp(enabledProviderTypes[i]); | ||
@@ -100,6 +101,8 @@ | ||
} | ||
} | ||
} | ||
+*/ | ||
+ activeProviderTypes = availableProviderTypes; | ||
|
||
SdoServiceProviderFactory& factory(SdoServiceProviderFactory::instance()); | ||
for (size_t i(0); i < activeProviderTypes.size(); ++i) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
BASEDIR=$(dirname $(readlink -f "$0")) | ||
|
||
sudo apt install subversion autoconf autotools-bin libpoco-dev | ||
if [ ! -d "$BASEDIR/FSM4RTC" ]; then | ||
svn co http://svn.openrtm.org/OpenRTM-aist/branches/FSM4RTC $BASEDIR/FSM4RTC | ||
fi | ||
cd $BASEDIR/FSM4RTC | ||
svn update | ||
patch -p0 -E < $BASEDIR/setup-fsm4rtc.patch | ||
cd OpenRTM-aist | ||
./autogen.sh | ||
./configure | ||
make -j4 | ||
|
||
## To launch the test component: | ||
# cd src/ext/sdo/fsm4rtc_observer/test/ | ||
# ./test.sh |