Giter Site home page Giter Site logo

Comments (5)

jhwangbo avatar jhwangbo commented on August 20, 2024

nope. It's not supported.

You can only have one window per process.

from raisimogre.

edward9503 avatar edward9503 commented on August 20, 2024

nope. It's not supported.

You can only have one window per process.

Thanks for the reply.

Ok, then can I attach the cameraMan view in one process moving together with the camera frame on the robot? And how?

Thanks in advance.

from raisimogre.

jhwangbo avatar jhwangbo commented on August 20, 2024

You can assign a dummy joint in the URDF and read it as a frame in raisim. It will give you the position and orientation. Then you have to update the pose of the camera in every frame.

from raisimogre.

edward9503 avatar edward9503 commented on August 20, 2024

You can assign a dummy joint in the URDF and read it as a frame in raisim. It will give you the position and orientation. Then you have to update the pose of the camera in every frame.

Really appreciate for the reply.

Yes that was exactly what I was doing. The followings are my codes:

// lambda function for the controller
auto controller = vis,
anymal
{
raisim::Vec<3> camera_position;
raisim::Mat<3, 3> camera_orientation;
Ogre::SceneNode* mCamera;
anymal.back()->getFramePosition("depth_camera_front_camera", camera_position);
anymal.back()->getFrameOrientation("depth_camera_front_camera", camera_orientation);
mCamera->setPosition(Ogre::Vector3(camera_position));
mCamera->setOrientation(Ogre::Quaternion{1.,0.,0.,0.});
// vis->getCameraMan()->setYawPitchDist(Ogre::Radian(0), -Ogre::Radian(M_PI_4), 2);
vis->getCameraMan()->setCamera(mCamera);
};

vis->setControlCallback(controller);

I realize that there are issues on the mCamera->setPosition and mCamera->setOrientation lines. But I cannot solve the problems. How is your opinion?

Thanks.

from raisimogre.

jhwangbo avatar jhwangbo commented on August 20, 2024

Ogre must have a different convention. Check OgreVis.cpp and see how I converted it

from raisimogre.

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.