Plugin to publish topics of color and depth images.
More...
#include <ImagePublisher.h>
|
| ImagePublisher (const mjModel *m, mjData *d, int sensor_id, const std::string &frame_id, std::string color_topic_name, std::string depth_topic_name, std::string info_topic_name, int height, int width, mjtNum publish_rate) |
| Constructor. More...
|
|
Plugin to publish topics of color and depth images.
Definition at line 18 of file ImagePublisher.h.
◆ ImagePublisher() [1/2]
◆ ImagePublisher() [2/2]
MujocoRosUtils::ImagePublisher::ImagePublisher |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
sensor_id, |
|
|
const std::string & |
frame_id, |
|
|
std::string |
color_topic_name, |
|
|
std::string |
depth_topic_name, |
|
|
std::string |
info_topic_name, |
|
|
int |
height, |
|
|
int |
width, |
|
|
mjtNum |
publish_rate |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
m | model |
d | data |
sensor_id | sensor ID |
frame_id | frame ID of topics header or TF parent |
color_topic_name | topic name of color image |
depth_topic_name | topic name of depth image |
info_topic_name | topic name of camera information |
height | image height |
width | image width |
publish_rate | publish rate |
Definition at line 173 of file ImagePublisher.cpp.
◆ compute()
void MujocoRosUtils::ImagePublisher::compute |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
plugin_id |
|
) |
| |
◆ Create()
ImagePublisher * MujocoRosUtils::ImagePublisher::Create |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
plugin_id |
|
) |
| |
|
static |
Create an instance.
- Parameters
-
m | model |
d | data |
plugin_id | plugin ID |
Definition at line 74 of file ImagePublisher.cpp.
◆ free()
void MujocoRosUtils::ImagePublisher::free |
( |
| ) |
|
◆ RegisterPlugin()
MujocoRosUtils::ImagePublisher::RegisterPlugin |
( |
| ) |
|
|
static |
◆ reset()
void MujocoRosUtils::ImagePublisher::reset |
( |
const mjModel * |
m, |
|
|
int |
plugin_id |
|
) |
| |
◆ camera_
mjvCamera MujocoRosUtils::ImagePublisher::camera_ |
|
protected |
Variables for visualization and rendering in MuJoCo
Definition at line 102 of file ImagePublisher.h.
◆ camera_id_
int MujocoRosUtils::ImagePublisher::camera_id_ = -1 |
|
protected |
◆ color_buffer_
unsigned char* MujocoRosUtils::ImagePublisher::color_buffer_ |
|
protected |
◆ color_buffer_flipped_
unsigned char* MujocoRosUtils::ImagePublisher::color_buffer_flipped_ |
|
protected |
◆ color_pub_
ros::Publisher MujocoRosUtils::ImagePublisher::color_pub_ |
|
protected |
◆ context_
mjrContext MujocoRosUtils::ImagePublisher::context_ |
|
protected |
Variables for visualization and rendering in MuJoCo
Definition at line 104 of file ImagePublisher.h.
◆ depth_buffer_
float* MujocoRosUtils::ImagePublisher::depth_buffer_ |
|
protected |
◆ depth_buffer_flipped_
float* MujocoRosUtils::ImagePublisher::depth_buffer_flipped_ |
|
protected |
◆ depth_pub_
ros::Publisher MujocoRosUtils::ImagePublisher::depth_pub_ |
|
protected |
◆ frame_id_
std::string MujocoRosUtils::ImagePublisher::frame_id_ |
|
protected |
◆ info_pub_
ros::Publisher MujocoRosUtils::ImagePublisher::info_pub_ |
|
protected |
◆ nh_
std::shared_ptr<ros::NodeHandle> MujocoRosUtils::ImagePublisher::nh_ |
|
protected |
◆ option_
mjvOption MujocoRosUtils::ImagePublisher::option_ |
|
protected |
Variables for visualization and rendering in MuJoCo
Definition at line 103 of file ImagePublisher.h.
◆ publish_skip_
int MujocoRosUtils::ImagePublisher::publish_skip_ = 0 |
|
protected |
◆ scene_
mjvScene MujocoRosUtils::ImagePublisher::scene_ |
|
protected |
Variables for visualization and rendering in MuJoCo
Definition at line 101 of file ImagePublisher.h.
◆ sensor_id_
int MujocoRosUtils::ImagePublisher::sensor_id_ = -1 |
|
protected |
◆ sim_cnt_
int MujocoRosUtils::ImagePublisher::sim_cnt_ = 0 |
|
protected |
◆ viewport_
mjrRect MujocoRosUtils::ImagePublisher::viewport_ |
|
protected |
Variables for visualization and rendering in MuJoCo
Definition at line 105 of file ImagePublisher.h.
◆ window_
GLFWwindow* MujocoRosUtils::ImagePublisher::window_ |
|
protected |
Variables for visualization and rendering in MuJoCo
Definition at line 106 of file ImagePublisher.h.
The documentation for this class was generated from the following files:
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/ImagePublisher.h
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/ImagePublisher.cpp
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/Plugin.cpp