18 #ifndef CORBA_RTCUTIL_H
19 #define CORBA_RTCUTIL_H
224 RTC::ExecutionContext_ptr ec);
435 RTC::RTObject_ptr othercomp);
453 RTC::RTObject_ptr othercomp);
556 const std::string& port_name);
586 const std::string& port_name);
608 RTC::PortService_ptr port0,
609 RTC::PortService_ptr port1);
625 RTC::PortService_ptr otherport);
645 RTC::ReturnCode_t
connect(
const std::string& name,
647 RTC::PortService_ptr port0,
648 RTC::PortService_ptr port1);
664 RTC::ReturnCode_t
disconnect(RTC::ConnectorProfile connector_prof);
700 const std::string& conn_name);
719 const std::string& conn_id);
737 const std::string& conn_id);
799 const std::string& othername);
820 RTC::PortService_ptr port,
821 RTC::PortServiceList& target_ports);
870 const std::string& name);
895 RTC::RTObject_ptr rtc0,
896 const std::string& portName0,
897 RTC::RTObject_ptr rtc1,
898 const std::string& portName1);
933 const std::string& confset_name,
934 const std::string& value_name);
983 bool set_configuration(RTC::RTObject_ptr rtc,
const std::string& confset_name,
const std::string& value_name,
const std::string& value);
1024 SDOPackage::ConfigurationSet& confset,
1025 const std::string& value_name,
1026 const std::string& value);
CORBA sequence utility template functions
NameValue and NVList utility functions
Definition: CORBA_RTCUtil.h:30
RTC::ReturnCode_t reset(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
RTCを指定した実行コンテキストでリセットする
RTC::ReturnCode_t connect_by_name(const std::string &name, const coil::Properties &prop, RTC::RTObject_ptr rtc0, const std::string &portName0, RTC::RTObject_ptr rtc1, const std::string &portName1)
対象のRTCの指定した名前のポートを接続する
std::string get_parameter_by_key(RTC::RTObject_ptr rtc, const std::string &confset_name, const std::string &value_name)
指定したコンフィギュレーションセット名、パラメータ名のコン フィギュレーションパラメータを取得
bool already_connected(RTC::PortService_ptr localport, RTC::PortService_ptr otherport)
指定したポート同士が接続されているかを判定
RTC::PortService_ptr get_port_by_name(RTC::RTObject_ptr rtc, const std::string &name)
対象のRTCから指定した名前のポートを取得
RTC::ReturnCode_t connect_multi(const std::string &name, const coil::Properties &prop, RTC::PortService_ptr port, RTC::PortServiceList &target_ports)
指定したポートと指定したリスト内のポート全てと接続する
RTC::ReturnCode_t disconnect_all(RTC::PortService_ptr port_ref)
対象のポートのコネクタを全て切断
bool set_active_configuration(RTC::RTObject_ptr rtc, const std::string &value_name, const std::string &value)
アクティブなコンフィギュレーションセットのパラメータを設定
RTC::ReturnCode_t deactivate(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
RTCを指定した実行コンテキストで非アクティベーションする
coil::Properties get_configuration(RTC::RTObject_ptr rtc, const std::string &conf_name)
対象RTCの指定した名前のコンフィギュレーションセットをkey-valueで取得
RTC::ReturnCode_t activate(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
RTCを指定した実行コンテキストでアクティベーションする
CORBA::Double get_default_rate(RTC::RTObject_ptr rtc)
RTCのデフォルトの実行コンテキストの実行周期を取得する
RTC::UniqueId get_ec_id(RTC::RTObject_ptr rtc, RTC::ExecutionContext_ptr ec)
対象のRTコンポーネントから指定した実行コンテキストのIDを取得する
coil::Properties get_component_profile(RTC::RTObject_ptr rtc)
RTC操作ユーティリティー関数群
coil::vstring get_inport_names(RTC::RTObject_ptr rtc)
指定したRTCの保持するインポートの名前を取得
RTC::ReturnCode_t set_current_rate(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id, CORBA::Double rate)
RTCの指定IDの実行コンテキストの周期を設定
bool is_in_active(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
対象のRTコンポーネントの指定したECでACTIVE状態かどうか判定
bool set_configuration(RTC::RTObject_ptr rtc, const std::string &confset_name, const std::string &value_name, const std::string &value)
コンフィギュレーションパラメータを設定
bool is_existing(RTC::RTObject_ptr rtc)
コンポーネントのオブジェクトリファレンスが存在しているかを判定
bool is_alive_in_default_ec(RTC::RTObject_ptr rtc)
RTCがデフォルトの実行コンテキストでalive状態かを判定する
RTC::ExecutionContext_ptr get_actual_ec(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
RTコンポーネントに関連付けした実行コンテキストから指定したIDの実行コンテキストを取得
RTC::ReturnCode_t disconnect_connector_name(RTC::PortService_ptr port_ref, const std::string &conn_name)
対象のポートで指定した名前のコネクタを切断
bool is_in_error(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
対象のRTコンポーネントの指定したECでERROR状態かどうか判定
RTC::ReturnCode_t disconnect_connector_id(RTC::PortService_ptr port_ref, const std::string &conn_id)
対象のポートで指定したIDのコネクタを切断
coil::Properties get_active_configuration(RTC::RTObject_ptr rtc)
アクティブなコンフィギュレーションセットをkey-valueで取得する
coil::vstring get_port_names(RTC::RTObject_ptr rtc)
指定したRTCの保持するポートの名前を取得
coil::vstring get_outport_names(RTC::RTObject_ptr rtc)
指定したRTCの保持するアウトポートの名前を取得
bool is_in_inactive(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
対象のRTコンポーネントの指定したECでINACTIVE状態かどうか判定
RTC::ReturnCode_t disconnect(RTC::ConnectorProfile connector_prof)
対象のRTCの指定したポートのコネクタのIDのリストを取得
CORBA::Double get_current_rate(RTC::RTObject_ptr rtc, RTC::UniqueId ec_id)
RTCの指定IDの実行コンテキストの周期を取得
bool set_configuration_parameter(SDOPackage::Configuration_ptr conf, SDOPackage::ConfigurationSet &confset, const std::string &value_name, const std::string &value)
コンフィギュレーションパラメータの設定
bool get_state(RTC::LifeCycleState &state, RTC::RTObject_ptr rtc, RTC::UniqueId ec_id=0)
対象のRTコンポーネントの指定した実行コンテキストでの状態を取得
std::string get_active_configuration_name(RTC::RTObject_ptr rtc)
対象のRTCのアクティブなコンフィギュレーションセット名を取得する
RTC::ConnectorProfile * create_connector(const std::string &name, const coil::Properties &prop_arg, RTC::PortService_ptr port0, RTC::PortService_ptr port1)
指定したポートを接続するためのコネクタプロファイルを取得
RTC::ReturnCode_t set_default_rate(RTC::RTObject_ptr rtc, CORBA::Double rate)
RTCのデフォルトの実行コンテキストの実行周期を設定する
coil::vstring get_svcport_names(RTC::RTObject_ptr rtc)
指定したRTCの保持するサービスポートの名前を取得
RTC::PortService_ptr get_port_by_url(const std::string &port_name)
指定した名前のポートを取得
coil::vstring get_connector_names(RTC::PortService_ptr port)
指定したポートの保持しているコネクタの名前のリストを取得
RTC::ReturnCode_t remove_rtc_to_default_ec(RTC::RTObject_ptr localcomp, RTC::RTObject_ptr othercomp)
対象のRTCのデフォルトのECの指定のRTCへの関連付けを解除する
RTC::ReturnCode_t connect(const std::string &name, const coil::Properties &prop, RTC::PortService_ptr port0, RTC::PortService_ptr port1)
指定したポートを接続する
RTC::RTCList get_participants_rtc(RTC::RTObject_ptr rtc)
RTCのデフォルトの実行コンテキストに参加しているRTCのリストを取得する 実行コンテキストがnilの場合は空のリストを返す
RTC::ReturnCode_t disconnect_name(RTC::PortService_ptr localport, const std::string &othername)
対象ポートと接続しているポートで指定したポート名と一致した場合に切断
coil::vstring get_connector_ids(RTC::PortService_ptr port)
指定したポートの保持しているコネクタのIDのリストを取得
RTC::ReturnCode_t add_rtc_to_default_ec(RTC::RTObject_ptr localcomp, RTC::RTObject_ptr othercomp)
対象のRTCのデフォルトの実行コンテキストに指定のRTCを関連付ける
ExecutionContextHandle_t UniqueId
Definition: ComponentActionListener.h:34
coil::Properties Properties
Definition: RTC.h:72
ポートを名前から検索
Definition: CORBA_RTCUtil.h:830
find_port(std::string name)
検索するポート名を指定する
Definition: CORBA_RTCUtil.h:841
const std::string m_name
Definition: CORBA_RTCUtil.h:831
bool operator()(const RTC::PortService_ptr p)
対象のポートの名前と指定したポート名が一致するか判定