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

请问下怎么查看狗子的日志 #17

Open
GMaker-git opened this issue Oct 2, 2023 · 1 comment
Open

请问下怎么查看狗子的日志 #17

GMaker-git opened this issue Oct 2, 2023 · 1 comment

Comments

@GMaker-git
Copy link

GMaker-git commented Oct 2, 2023

SSH到狗上面运行这个
ros2 run rqt_console rqt_console
会报错
Package 'rqt_console' not found

把狗加入一个局域网,同样使用ROS_DOMAIN_ID=42,结果ros2 multicast receive和ros2 multicast send是互通的,但是两个机器的节点和消息就是不通,没法调试程序啊.

请指点怎么样调试代码看日志!

@xiaomi-robot-liukai
Copy link
Contributor

SSH到狗上面运行这个 ros2 run rqt_console rqt_console 会报错 Package 'rqt_console' not found

把狗加入一个局域网,同样使用ROS_DOMAIN_ID=42,结果ros2 multicast receive和ros2 multicast send是互通的,但是两个机器的节点和消息就是不通,没法调试程序啊.

请指点怎么样调试代码看日志!

日志可以直接查看/var/log/syslog文件,在实时刷。或者也可以journalctl -fn 100000 |grep 程序名,关于journalctl更多的用法可以搜索到详细的教程。

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

No branches or pull requests

2 participants