Plugin to apply external force.
More...
#include <ExternalForce.h>
|
| ExternalForce (const mjModel *m, mjData *d, int body_id, const std::string &topic_name, mjtNum vis_scale) |
| Constructor. More...
|
|
void | callback (const mujoco_ros_utils::ExternalForce::ConstPtr &msg) |
| Constructor. More...
|
|
Plugin to apply external force.
Definition at line 18 of file ExternalForce.h.
◆ ExternalForce() [1/2]
MujocoRosUtils::ExternalForce::ExternalForce |
( |
ExternalForce && |
| ) |
|
|
default |
◆ ExternalForce() [2/2]
MujocoRosUtils::ExternalForce::ExternalForce |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
body_id, |
|
|
const std::string & |
topic_name, |
|
|
mjtNum |
vis_scale |
|
) |
| |
|
protected |
Constructor.
- Parameters
-
m | model |
d | data |
body_id | body ID |
topic_name | topic name of external force |
vis_scale | arrow length scale |
Definition at line 112 of file ExternalForce.cpp.
◆ callback()
void MujocoRosUtils::ExternalForce::callback |
( |
const mujoco_ros_utils::ExternalForce::ConstPtr & |
msg | ) |
|
|
protected |
◆ compute()
void MujocoRosUtils::ExternalForce::compute |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
int |
plugin_id |
|
) |
| |
Compute.
- Parameters
-
m | model |
d | data |
plugin_id | plugin ID |
Definition at line 144 of file ExternalForce.cpp.
◆ Create()
ExternalForce * MujocoRosUtils::ExternalForce::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 ExternalForce.cpp.
◆ RegisterPlugin()
MujocoRosUtils::ExternalForce::RegisterPlugin |
( |
| ) |
|
|
static |
◆ reset()
void MujocoRosUtils::ExternalForce::reset |
( |
const mjModel * |
m, |
|
|
int |
plugin_id |
|
) |
| |
◆ visualize()
void MujocoRosUtils::ExternalForce::visualize |
( |
const mjModel * |
m, |
|
|
mjData * |
d, |
|
|
const mjvOption * |
opt, |
|
|
mjvScene * |
scn, |
|
|
int |
plugin_id |
|
) |
| |
Visualize.
- Parameters
-
m | model |
d | data |
opt | visualization option |
scn | rendering scene |
plugin_id | plugin ID |
Definition at line 190 of file ExternalForce.cpp.
◆ body_id_
int MujocoRosUtils::ExternalForce::body_id_ = -1 |
|
protected |
◆ callbackQueue_
ros::CallbackQueue MujocoRosUtils::ExternalForce::callbackQueue_ |
|
protected |
◆ end_time_
mjtNum MujocoRosUtils::ExternalForce::end_time_ = -1 |
|
protected |
End time to apply external force (-1 if no external force is applied)
Definition at line 92 of file ExternalForce.h.
◆ msg_
std::shared_ptr<mujoco_ros_utils::ExternalForce> MujocoRosUtils::ExternalForce::msg_ |
|
protected |
◆ nh_
std::shared_ptr<ros::NodeHandle> MujocoRosUtils::ExternalForce::nh_ |
|
protected |
◆ sub_
ros::Subscriber MujocoRosUtils::ExternalForce::sub_ |
|
protected |
◆ topic_name_
std::string MujocoRosUtils::ExternalForce::topic_name_ |
|
protected |
◆ vis_scale_
mjtNum MujocoRosUtils::ExternalForce::vis_scale_ |
|
protected |
Arrow length scale (negative value for no visualization)
Definition at line 95 of file ExternalForce.h.
The documentation for this class was generated from the following files:
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/ExternalForce.h
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/ExternalForce.cpp
- /home/runner/work/MujocoRosUtils/MujocoRosUtils/catkin_ws/src/isri-aist/MujocoRosUtils/plugin/Plugin.cpp