Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Observation scripts exits with AttributeError #506

Closed
KaoruNishikawa opened this issue Mar 25, 2022 · 0 comments · Fixed by #507
Closed

Observation scripts exits with AttributeError #506

KaoruNishikawa opened this issue Mar 25, 2022 · 0 comments · Fixed by #507
Assignees
Labels

Comments

@KaoruNishikawa
Copy link
Contributor

Which is caused by invalid default value in the following methods:

@deco_check
def read_status(self):
"""read status
attention!!
-----------
you need execution this script.
$rosrun necst ROS_status.py 1
or
$python ROS_status.py 1
"""
self.read_sub = rospy.Subscriber("read_status", Read_status_msg, self._write_status)
while not rospy.is_shutdown():
if self.status:
status = self.status
self.status = ""
break
else:
status = ""
time.sleep(0.1)
return status
def _write_status(self, req):
self.status = req
self.read_sub.unregister()
return

@KaoruNishikawa KaoruNishikawa self-assigned this Mar 25, 2022
KaoruNishikawa added a commit that referenced this issue Mar 26, 2022
KaoruNishikawa added a commit that referenced this issue Mar 28, 2022
KaoruNishikawa added a commit that referenced this issue Mar 28, 2022
KaoruNishikawa added a commit that referenced this issue Mar 28, 2022
This is a workaround regarding Poetry's bug. If there are two identically constrained version specification, Poetry attempts to resolve dependency versions for every constraints combination, even if there's no intersection, which raises SolverProblemError. This behaviour isn't fixed yet but tracked in <python-poetry/poetry#3367> and will be resolved in <python-poetry/poetry#4695>.
KaoruNishikawa added a commit that referenced this issue Mar 28, 2022
KaoruNishikawa added a commit that referenced this issue Mar 28, 2022
KaoruNishikawa added a commit that referenced this issue Mar 28, 2022
KaoruNishikawa added a commit that referenced this issue Mar 28, 2022
r-yamada1998 added a commit that referenced this issue Mar 29, 2022
Fix error message and default value for status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant