Comments (5)
nope. It's not supported.
You can only have one window per process.
from raisimogre.
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.
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.
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.
Ogre must have a different convention. Check OgreVis.cpp and see how I converted it
from raisimogre.
Related Issues (20)
- During cmake instructions when installing raisimOgre HOT 3
- Why the examples such as ANYmal can not move? HOT 1
- Scaling function HOT 1
- Black screen in renderer after brief flash HOT 16
- Height map is not visualized correctly HOT 3
- OgreVis.hpp: No such file or directory HOT 7
- ImportError: .cpython-36m-x86_64-linux-gnu.so: undefined symbol: HOT 4
- Finding an old repository HOT 1
- License Issue? graphics issue? HOT 1
- Compilation error: expression cannot be used as a function HOT 5
- Segmentation fault when trying to run the examples HOT 4
- Possibility of rendering one ogre visualization frame in different threat or loop HOT 2
- Stereo camera possible? HOT 2
- Problem with changing the friction coefficient between robot's feet and ground HOT 22
- Unknown argument -OGRE_BUILD_COMPONENT_JAVA=OFF HOT 1
- PCRE SWIG problem solved HOT 4
- Unable to make the ogre (and hence raisimOgre) in Ubuntu 22.04 HOT 4
- Map visualization segfaults with multiple threads HOT 3
- file INSTALL cannot find libOgreMain.so.1.12.2 no such file or directory HOT 20
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raisimogre.