Closed TheGreatGalaxy closed 3 years ago
you can add gflag --pointcloud_topic= YOUR POINT CLOUD TOPIC in https://github.com/ApolloAuto/apollo/blob/ecece0da431c82cd1b52129ec1b0bb58323331a2/modules/dreamview/conf/dreamview.conf#L1
you can add gflag --pointcloud_topic= YOUR POINT CLOUD TOPIC in https://github.com/ApolloAuto/apollo/blob/ecece0da431c82cd1b52129ec1b0bb58323331a2/modules/dreamview/conf/dreamview.conf#L1
@qwetqwe If i have several lidars, how should i to configure:
@qwetqwe I wite a node and use the channel ""/apollo/sensor/lidar128/compensator/PointCloud2" which contained in a demo rec data。 I use cyber_record to play this data but black the channel. And use the node to send point cloud. But the dreamview still can't display point cloud. `#include "modules/drivers/proto/pointcloud.pb.h"
using apollo::cyber::Rate; using apollo::cyber::Time; using apollo::drivers::PointCloud; using apollo::drivers::PointXYZIT;
float GetRandomNoise() { std::srand((unsigned)std::time(NULL)); return std::rand() % 20 / 10.0; }
int main(int argc, char *argv[]) {
google::ParseCommandLineFlags(&argc, &argv, true);
FLAGS_alsologtostderr = true;
// init cyber framework
apollo::cyber::Init(argv[0]);
// create talker node
std::shared_ptr
while (apollo::cyber::OK()) {
std::shared_ptr
return 0; }` This is the code. And i can see the send content got by _cyberchannel echo. it's same format as the lidar content from demo rec file. But mine can't display, the demo rec can display in Dreamview. Can you help me? How to debug this issue?
you can add gflag --pointcloud_topic= YOUR POINT CLOUD TOPIC in https://github.com/ApolloAuto/apollo/blob/ecece0da431c82cd1b52129ec1b0bb58323331a2/modules/dreamview/conf/dreamview.conf#L1
@qwetqwe If i have several lidars, how should i to configure:
1. method 1 --pointcloud_topic= YOUR POINT CLOUD TOPIC_1 --pointcloud_topic= YOUR POINT CLOUD TOPIC_2 2. method 2 --pointcloud_topic_1= YOUR POINT CLOUD TOPIC_1 --pointcloud_topic_2= YOUR POINT CLOUD TOPIC_2 And where is the code to subscribe those topics?
you need to fusion multi lidar pointclouds into one point cloud. dreamview can only show one topic see https://github.com/ApolloAuto/apollo/blob/ecece0da431c82cd1b52129ec1b0bb58323331a2/modules/drivers/lidar/velodyne/conf/velodyne_fusion_conf.pb.txt#L3-L7
Find the reason of point cloud can't be displayed. Dreamview is using timestamp to filter point cloud. https://github.com/ApolloAuto/apollo/blob/ecece0da431c82cd1b52129ec1b0bb58323331a2/modules/dreamview/backend/point_cloud/point_cloud_updater.cc#L93.
We appreciate you go through Apollo documentations and search previous issues before creating an new one. If neither of the sources helped you with your issues, please report the issue using the following form. Please note missing info can delay the response time.
System information
apollo.sh config
if onmaster
branch:Steps to reproduce the issue:
Supporting materials (screenshots, command lines, code/script snippets):