以下の内容はhttps://shuzo-kino.hateblo.jp/entry/2022/03/17/224619より取得しました。


ROSからM5stackにふれる その4:log

実際のところ

#include <ros.h>
#include <M5Stack.h>


ros::NodeHandle nh;

void setup()
{
  // initialize the M5Stack object
  M5.begin();
  M5.Power.begin();

  nh.initNode();
}

void loop()
{
  //wait until you are actually connected
  while (!nh.connected())
  {
    nh.spinOnce();
  }
 
  //Now you can send all of the statements you want
  //to be logged at the appropriate verbosity level
  nh.logdebug("Debug Statement");
  nh.loginfo("Program info");
  nh.logwarn("Warnings.");
  nh.logerror("Errors..");
  nh.logfatal("Fatalities!");
  delay(5000);
}



以上の内容はhttps://shuzo-kino.hateblo.jp/entry/2022/03/17/224619より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14