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

在打印输出位置信息的时候同时获取速度、信号强度等信息 #2

Open
nazisu2020 opened this issue Aug 29, 2022 · 2 comments

Comments

@nazisu2020
Copy link

nazisu2020 commented Aug 29, 2022

您好,我想请问一下:

std::cout << "Node " << rm->getSenderAddress() << " reported from position " << rm->getSenderPos() << std::endl;

在获取车辆节点位置信息的时候可以同时获取速度信息吗,要怎么实现呢,我在使用getSpeed()方法的时候发现识别不到这一方法

@SpereShelde
Copy link
Owner

很久没碰这个了,但是我觉得速度是由SUMO模拟的吧,veins如果没有提供这个接口可能得自己改通讯脚本从SUMO收

@nazisu2020
Copy link
Author

很久没碰这个了,但是我觉得速度是由SUMO模拟的吧,veins如果没有提供这个接口可能得自己改通讯脚本从SUMO收

哦哦,好的,那我看看TraCI那边有没有这样的接口

十分感谢!!!

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