Coder Social home page Coder Social logo

behavior3logger's Introduction

行为树节点日志

将行为树各个节点的运行结果导出成json文件,供行为树可视化, json格式请参考 behavior3tracker运行时数据格式

  • 使用方式
    -- 创建日志对象
    local Mod = require "b3_logger"
    local logger = Mod.new(日志文件名)

    -- 开启新一帧
    logger:new_frame()

    -- 添加节点状态日志
    logger:log(节点id, 节点运行状态, 提示消息)

    -- 终端输出日志
    logger:dump()

    -- 存储日志文件(不会清空日志)
    logger:save()

behavior3logger's People

Watchers

Wilson-Loo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.