Skip to content

Commit

Permalink
document using ViSP convention for setting and retrieving object and …
Browse files Browse the repository at this point in the history
…camera pose
  • Loading branch information
SamFlt committed Apr 22, 2024
1 parent fd89ed9 commit 858afb6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions modules/ar/include/visp3/ar/vpPanda3DBaseRenderer.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,21 @@ class VISP_EXPORT vpPanda3DBaseRenderer

/**
* @brief Set the camera's pose.
* The pose is specified using the ViSP convention (Y-down right handed).
*
* @param wTc the new pose of the camera, in world frame
*/
virtual void setCameraPose(const vpHomogeneousMatrix &wTc);

/**
* @brief Retrieve the camera's pose, in the world frame.
* The pose is specified using the ViSP convention (Y-down right handed).
*/
virtual vpHomogeneousMatrix getCameraPose();

/**
* @brief Set the pose of a node. This node can be any Panda object (light, mesh, camera).
* The pose is specified using the ViSP convention (Y-down right handed).
*
* @param name Node path to search for, from the render root. This is the object that will be modified See https://docs.panda3d.org/1.10/python/programming/scene-graph/searching-scene-graph
* @param wTo Pose of the object in the world frame
Expand All @@ -131,15 +134,17 @@ class VISP_EXPORT vpPanda3DBaseRenderer
virtual void setNodePose(const std::string &name, const vpHomogeneousMatrix &wTo);

/**
* @brief Set the pose of a node. This node can be any Panda object (light, mesh, camera).
* @brief Set the pose of a node.
* The pose is specified using the ViSP convention (Y-down right handed).
* This node can be any Panda object (light, mesh, camera).
*
* @param object The object for which to set the pose
* @param wTo Pose of the object in the world frame
*/
virtual void setNodePose(NodePath &object, const vpHomogeneousMatrix &wTo);

/**
* @brief Get the pose of a Panda node, in world frame.
* @brief Get the pose of a Panda node, in world frame in the ViSP convention (Y-down right handed).
*
* @param name Node path to search for. \see setNodePose(const std::string &, const vpHomogeneousMatrix &) for more info
* @return wTo, the pose of the object in world frame
Expand All @@ -148,7 +153,7 @@ class VISP_EXPORT vpPanda3DBaseRenderer
virtual vpHomogeneousMatrix getNodePose(const std::string &name);

/**
* @brief Get the pose of a Panda node, in world frame. This version of the method directly uses the Panda Nodepath.
* @brief Get the pose of a Panda node, in world frame in the ViSP convention (Y-down right handed). This version of the method directly uses the Panda Nodepath.
*/
virtual vpHomogeneousMatrix getNodePose(NodePath &object);

Expand Down

0 comments on commit 858afb6

Please sign in to comment.