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

Analysis to move the robot refactoring #15

Open
wants to merge 1 commit into
base: analysis_to_move_the_robot
Choose a base branch
from

Conversation

yasuohayashibara
Copy link
Member

ブランチanalysis_to_move_the_robotをリファクタリグするブランチのPR

@yasuohayashibara
Copy link
Member Author

#13
で報告しているが,現在の姿勢の取得は1s程度の周期でしか行っていないので,少し過去の姿勢に基づいて周期を決定していることになるため,上記と同様に以下を追加したほうが良いと思います.

def calc_distance(self):
distance_list = []
try:
trans = self.tfBuffer.lookup_transform('map', 'base_link', rospy.Time())
except (tf2_ros.LookupException, tf2_ros.ConnectivityException, tf2_ros.ExtrapolationException):
self.min_distance = 0.0
return
pos = trans.transform.translation
for pose in self.path_pose.poses:
path = pose.pose.position
distance = np.sqrt(abs((pos.x - path.x)**2 + (pos.y - path.y)**2))
distance_list.append(distance)
if distance_list:
self.min_distance = min(distance_list)

@yasuohayashibara
Copy link
Member Author

yasuohayashibara commented Aug 28, 2022

rate_change.pynav_cloning_node.pyに統合しました.

実行は以下となります.

./experiment_variable_sampling_time

従来手法(use_dl_output) 9/10成功
提案手法 17/18成功 ただし,失敗した1回は他の作業をしながらなので,それが影響したおそれがある.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant