Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
Merge pull request autowarefoundation#30 from tier4/fix-tilde_vis-tes…
Browse files Browse the repository at this point in the history
…ting

入れ違いになったかもですが、conflictを修正して merge します。
  • Loading branch information
nabetetsu authored May 25, 2022
2 parents e2dfc77 + 51b60b8 commit 7282358
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/tilde_vis/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
<maintainer email="y-okumura@todo.todo">y-okumura</maintainer>
<license>TODO: License declaration</license>

<depend>rclpy</depend>
<depend>tilde_msg</depend>
<test_depend>ament_copyright</test_depend>
<test_depend>ament_flake8</test_depend>
<test_depend>ament_pep257</test_depend>
<test_depend>python3-pytest</test_depend>

<exec_depend>rclpy</exec_depend>
<exec_depend>tilde_msg</exec_depend>

<export>
<build_type>ament_python</build_type>
</export>
Expand Down
4 changes: 2 additions & 2 deletions src/tilde_vis/tilde_vis/pathnode_vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


import os
import collections
from collections import defaultdict
import numpy as np
from logging import basicConfig, getLogger

Expand Down Expand Up @@ -57,7 +57,7 @@ class TopicInfoStatistics(object):
def __init__(self, topics, max_rows=10):
self.topics = topics
self.t2i = {topic: i for i, topic in enumerate(topics)}
self.seq2time = collections.defaultdict(lambda: - np.ones(len(self.t2i), dtype=np.float64))
self.seq2time = defaultdict(lambda: - np.ones(len(self.t2i), dtype=np.float64))
# (n_messages, n_subcallbacks), nanoseconds
self.data = - np.ones((max_rows, len(topics)), dtype=np.float)
self.data_idx = 0
Expand Down

0 comments on commit 7282358

Please sign in to comment.