topic _/posecam/0 outputs camera pose obviously under camera frame. This note says that "The camera position in world coordinates must be obtained by inversion". However in visualizer.cpp where topic _/posecam/0 is published, I tried to adapt inversion, but nothing changed.
This is how I code:
`void Visualizer::publishCameraPoses(const FrameBundlePtr& frame_bundle,
const int64_t timestamp_nanoseconds)
{
vk::output_helper::publishTfTransform(
frame_bundle->at(0)->T_cam_world(),
ros::Time().fromNSec(timestamp_nanoseconds), "campos", kWorldFrame, br);
for (size_t i = 0; i < frame_bundle->size(); ++i)
{
// if (pub_camposes.at(i).getNumSubscribers() == 0)
// return;
VLOG(100) << "Publish camera pose " << i;
And, if I get it right, its original code that uses function _T_worldcam() performed transformation already. So why the outputs were not so? And it seems like publisher of _/posecam/0 only appeared in visualizer.cpp.
How to transform the camera pose to world frame? Which file should I edit? Or which topic should I look up to?
topic _/posecam/0 outputs camera pose obviously under camera frame. This note says that "The camera position in world coordinates must be obtained by inversion". However in visualizer.cpp where topic _/posecam/0 is published, I tried to adapt inversion, but nothing changed. This is how I code: `void Visualizer::publishCameraPoses(const FrameBundlePtr& frame_bundle, const int64_t timestamp_nanoseconds) { vk::output_helper::publishTfTransform( frame_bundle->at(0)->T_cam_world(), ros::Time().fromNSec(timestamp_nanoseconds), "campos", kWorldFrame, br);
for (size_t i = 0; i < frame_bundle->size(); ++i) { // if (pub_camposes.at(i).getNumSubscribers() == 0) // return; VLOG(100) << "Publish camera pose " << i;
} }`
And, if I get it right, its original code that uses function _T_worldcam() performed transformation already. So why the outputs were not so? And it seems like publisher of _/posecam/0 only appeared in visualizer.cpp.
How to transform the camera pose to world frame? Which file should I edit? Or which topic should I look up to?