Skip to content

Commit 6cb7aa7

Browse files
committed
fix: open stream in PREOP
1 parent 3c3d664 commit 6cb7aa7

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/esl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,8 @@ esl::esl(const std::string& name, const YAML::Node& node) :
203203
dev_stream_name = get_as<string>(node, "dev_stream");
204204
}
205205

206-
//! State transition from SAFEOP to PREOP
207-
void esl::set_state_safeop_2_preop() {
206+
//! State transition from PREOP to INIT
207+
void esl::set_state_preop_2_init() {
208208
stop();
209209

210210
for (int i = 0; i < port_count; ++i) {
@@ -213,8 +213,8 @@ void esl::set_state_safeop_2_preop() {
213213
}
214214
}
215215

216-
//! State transition from PREOP to SAFEOP
217-
void esl::set_state_preop_2_safeop() {
216+
//! State transition from INIT to PREOP
217+
void esl::set_state_init_2_preop() {
218218
dev_stream = robotkernel::get_device<stream>(dev_stream_name);
219219

220220
for (int i = 0; i < port_count; ++i) {

src/esl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ class esl :
140140
//! destruction
141141
~esl() {};
142142

143-
//! State transition from SAFEOP to PREOP
144-
virtual void set_state_safeop_2_preop() override;
143+
//! State transition from PREOP to INIT
144+
virtual void set_state_preop_2_init() override;
145145

146-
//! State transition from PREOP to SAFEOP
147-
virtual void set_state_preop_2_safeop() override;
146+
//! State transition from INIT to PREOP
147+
virtual void set_state_init_2_preop() override;
148148

149149
//! send data
150150
/*!

0 commit comments

Comments
 (0)