code911 님의 블로그

  • 홈
  • 태그
  • 방명록

py tree 2

Py Tree - initialise

행동 트리(Behaviour Tree)의 주요 초기화 포인트주요 집중 사항:initialise() 메서드는 행동이 이미 실행 중이 아닐 때만 작동합니다.부모의 tick() 메서드가 언제 initialise(), stop(), terminate() 메서드를 호출할지 결정합니다.부모의 tick() 메서드는 항상 update()를 호출합니다.update() 메서드는 행동의 상태(Status)를 결정하는 역할을 합니다.초기화 과정초기화에 세 가지 메서드가 사용되므로 초기화 코드를 어디에 배치해야 할지 구분하기 어려울 수 있습니다. 각 메서드의 역할을 자세히 살펴보겠습니다:__init__ 메서드목적: 행동을 오프라인 DOT 그래프 생성에 충분하도록 인스턴스화합니다.중요성: 나중에 행동 트리를 DOT 그래프로 렌더..

카테고리 없음 2025.03.18

Py tree - behavior class

import random 6import typing 7 8import py_trees 9 10 11class Foo(py_trees.behaviour.Behaviour): 12 """A skeleton behaviour that inherits from the PyTrees Behaviour class.""" 13 14 def __init__(self, name: str) -> None: 15 """ 16 Minimal one-time initialisation. 17 18 A good rule of thumb is to only include the initialisation relevant 19 for being able to ins..

카테고리 없음 2025.03.18
이전
1
다음
더보기
프로필사진

code911 님의 블로그

code911 님의 블로그 입니다.

  • 분류 전체보기 (39)

Tag

도커, bash, ubuntu, 코딩, terminal, 이미지, py tree, Dockerfile, 스터디, 백수, 배열, docker-compose.yml, 개발환경, 독서, for, 포인터, Ai, 버전차이, 컨테이너, index,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바