Go to the documentation of this file.
36 std::vector<std::string> joint_names;
37 for (
auto const &transmission : transmissions) {
43 for (
auto const &joint : transmission.joints_) {
44 gazebo::physics::JointPtr sim_joint = parent_model->GetJoint(joint.name_);
46 ROS_ERROR_STREAM_NAMED(
"qb_hand_gazebo_hardware_interface",
"This robot has a joint named '" << joint.name_ <<
"' which is not in the gazebo model.");
50 joint_names.push_back(joint.name_);
69 #if GAZEBO_MAJOR_VERSION >= 8
72 double position =
sim_joints_.at(i)->GetAngle(0).Radian();
PLUGINLIB_EXPORT_CLASS(qb_hand_gazebo_hardware_interface::qbHandHWSim, gazebo_ros_control::RobotHWSim)
static double shortest_angular_distance(double from, double to)
std::vector< std::string > names
qb_device_joint_limits_interface::qbDeviceJointLimitsResources joint_limits_
void initialize(hardware_interface::RobotHW *robot, qbDeviceHWResources &joints)
bool initSim(const std::string &robot_namespace, ros::NodeHandle model_nh, gazebo::physics::ModelPtr parent_model, const urdf::Model *const urdf_model, std::vector< transmission_interface::TransmissionInfo > transmissions) override
std::vector< double > positions
void enforceLimits(const ros::Duration &period)
void readSim(ros::Time time, ros::Duration period) override
ros::NodeHandle model_nh_
#define ROS_ERROR_STREAM_NAMED(name, args)
std::vector< double > velocities
std::vector< double > efforts
hardware_interface::PositionJointInterface joint_position
bool startsWith(const std::string &string, const std::string &prefix)
std::vector< gazebo::physics::JointPtr > sim_joints_
std::string trailNamespace(const std::string &string)
void writeSim(ros::Time time, ros::Duration period) override
void initialize(ros::NodeHandle &robot_hw_nh, qb_device_hardware_interface::qbDeviceHWResources &joints, const urdf::Model &urdf_model, hardware_interface::PositionJointInterface &joint_position)
#define ROS_INFO_STREAM_NAMED(name, args)
qb_device_hardware_interface::qbDeviceHWInterfaces interfaces_
const std::string & getNamespace() const
void setJoints(const std::vector< std::string > &joints)
qb_device_hardware_interface::qbDeviceHWResources joints_
qb_hand_gazebo
Author(s): qbrobotics®
autogenerated on Fri Jul 26 2024 02:22:08