We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
周期的な処理を行うため、ros::time-nowを利用し、一定時間ごとに文章をプリントするコードを書きたかったのですが、エラーが出てしまいました
どのようにすれば想定どおり動くでしょうか。
The text was updated successfully, but these errors were encountered:
たとえば以下の例はどうでしょうか
(ros::roseus "test") (setq termstart (ros::time-now)) (do-until-key (setq curtime (ros::time-now)) (if (ros::time>= (ros::time- curtime termstart) (ros::time 5.0)) (progn (format t "elapsed ~A sec ~%" (send (ros::time- curtime termstart) :to-sec)) (setq termstart curtime)) ))
あるいは
(ros::roseus "test") (setq timestart (ros::time-now)) (do-until-key (when (> (send (ros::time- (ros::time-now) timestart) :to-sec) 3) (format t "elapsed ~A sec ~%" (send (ros::time- (ros::time-now) timestart) :to-sec)) (setq timestart (ros::time-now)) ))
Sorry, something went wrong.
No branches or pull requests
周期的な処理を行うため、ros::time-nowを利用し、一定時間ごとに文章をプリントするコードを書きたかったのですが、エラーが出てしまいました
どのようにすれば想定どおり動くでしょうか。
The text was updated successfully, but these errors were encountered: