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

Running on PC #4

Open
myboyhood opened this issue May 8, 2023 · 2 comments
Open

Running on PC #4

myboyhood opened this issue May 8, 2023 · 2 comments

Comments

@myboyhood
Copy link

When I'd like to run this project on my PC, I chose to run
“roslaunch d2vins realsense.launch”
and then I changed the params in d435_single.yaml such as
"

imu_topic: "/dji_sdk_1/dji_sdk/imu"

image0_topic: "/camera/infra1/image_rect_raw"

image1_topic: "/camera/infra2/image_rect_raw"

"
and left.yaml and right.yaml
"projection_parameters:"
to my params, then I try to roslaunch, but when the terminal writes

[ INFO] [1683553483.037062515]: D2VINS node 1 initialized. Ready to start.
[ INFO] [1683553483.037151392]: Starting d2vins_net lcm.


then it cannot write anything on the screen, just looks like to wait for some other topics???
but there are any other input topics except imu and camera/infra1 /infra2 ?

@myboyhood
Copy link
Author

and when I run now, the imu_sub can subscribe the imu topic, but pgo_fused_sub sub nothing
"
imu_sub = nh.subscribe(params->imu_topic, 1000, &D2VINSNode::imuCallback, this, ros::TransportHints().tcpNoDelay()); //We need a big queue for IMU.
pgo_fused_sub = nh.subscribe("/d2pgo/swarm_fused", 1, &D2VINSNode::pgoSwarmFusedCallback, this, ros::TransportHints().tcpNoDelay());
"
but where does the "/d2pgo/swarm_fused" come from ? i cannot find who publishes this topic in project

@xuhao1
Copy link
Collaborator

xuhao1 commented May 25, 2023

@myboyhood This topic is published by D2PGO at this line
https://github.com/HKUST-Aerial-Robotics/D2SLAM/blob/main/d2pgo/src/d2pgo_node.cpp#L133
You should launch with enable_loop:=true enable_pgo:=true to enable this.

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