-
Notifications
You must be signed in to change notification settings - Fork 0
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
[WIP] update database_talker #9
Conversation
results = self.query_images_and_classify(query=query, start_time=start_time, end_time=end_time) | ||
|
||
# no images found | ||
if len(results) == 0: | ||
return {'text': '記憶がありません🤯'} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@a-ichikura もうちょっとマシな返答テキストがあれば,教えてくれると助かります.
if parameters['date']: | ||
startdate = datetime.datetime.strptime(re.sub('\+(\d+):(\d+)$', '+\\1\\2',parameters['date']), "%Y-%m-%dT%H:%M:%S%z") | ||
duration = datetime.timedelta(hours=24) | ||
if parameters['date-period']: | ||
startdate = datetime.datetime.strptime(re.sub('\+(\d+):(\d+)$', '+\\1\\2',parameters['date-period']['startDate']), "%Y-%m-%dT%H:%M:%S%z") | ||
duration = datetime.datetime.strptime(re.sub('\+(\d+):(\d+)$', '+\\1\\2',parameters['date-period']['endDate']), "%Y-%m-%dT%H:%M:%S%z") - startdate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that this section cause something wrong with searching database????
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, I misunderstood the problem. This section has no problem.
This is because a long search, such as a 24-hour search, will not return results until the search is completed, unless the number of data matching the condition is equal to the number of limit items.
I can almost run this node with Fetch1075 other than the items I pointed out. $ source ~/ros/database_talker_ws/devel/setup.bash
$ roslaunch jsk_robot_startup sample_database_talker.launch
# other terminal
$ rosrun database_talker hoge.py |
@tkmtnt7000 このPRってマージしたほうがいい? |
マージしていただけると助かります. |
update version of jsk-ros-pkg#1388