Git Product home page Git Product logo

Comments (3)

strasdat avatar strasdat commented on August 19, 2024

Hi, I prefer not to include insertion operators ostream operator<< in Sophus, because there are so many options, especially for SO3 (rotation matrix, quaternion, angle-axis, so3.log() ...), and it is really a matter of taste which one to use.

Note that you can already do

std::cout << so3.matrix() << std::cout;
std::cout << so3.unit_quaternion() << std::cout;
std::cout << so3.log() << std::cout;

from sophus.

apesIITM avatar apesIITM commented on August 19, 2024

Hello @strasdat ,
I am trying to print the values of variable newRefToFrame_poseUpdate which is of type SE3 in https://github.com/tum-vision/lsd_slam/blob/master/lsd_slam_core/src/SlamSystem.cpp#L932
I want to read the values from it and modify. But when I try to print its value using following command, I receive an error.
std::cout << newRefToFrame_poseUpdate << std::endl;
Please provide a correct way to read and modify SE3 types.
Thanks.

from sophus.

Mechazo11 avatar Mechazo11 commented on August 19, 2024

@apesIITM
I know this is kinda very late buy maybe try the following

std::cout << "SE3 matrix --> " <<newRefToFrame_poseUpdate.matrix() <<std::endl;

A variant of this line worked for me to see the 4x4 transformation matrices of keyframes produced by ORB_SLAM

from sophus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.