25 #ifndef SR_GAZEBO_SIM_GAZEBO_HARDWARE_SIM_H 26 #define SR_GAZEBO_SIM_GAZEBO_HARDWARE_SIM_H 30 #include <boost/unordered_map.hpp> 33 #include "ros_ethercat_model/robot_state.hpp" 34 #include "ros_ethercat_model/robot_state_interface.hpp" 49 const std::string &robot_namespace,
51 gazebo::physics::ModelPtr parent_model,
53 std::vector<transmission_interface::TransmissionInfo> transmissions);
61 void fixJointName(std::vector<T> *items,
const std::string old_joint_name,
const std::string new_joint_name)
const;
66 const std::vector<transmission_interface::TransmissionInfo> &transmissions);
68 bool isHandJoint(
const std::vector<transmission_interface::TransmissionInfo> &transmissions,
69 const std::string &joint_name)
const;
86 #endif // SR_GAZEBO_SIM_GAZEBO_HARDWARE_SIM_H
void readSim(ros::Time time, ros::Duration period)
ros_ethercat_model::RobotStateInterface robot_state_interface_
boost::shared_ptr< SrGazeboHWSim > SrGazeboHWSimPtr
void initializeFakeRobotState(const urdf::Model *const urdf_model, const std::vector< transmission_interface::TransmissionInfo > &transmissions)
static const std::string simple_transmission_name
bool isHandJoint(const std::vector< transmission_interface::TransmissionInfo > &transmissions, const std::string &joint_name) const
void registerSecondHardwareInterface(std::vector< transmission_interface::TransmissionInfo > transmissions)
void fixJointName(std::vector< T > *items, const std::string old_joint_name, const std::string new_joint_name) const
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)
void addFakeTransmissionsForJ0(std::vector< transmission_interface::TransmissionInfo > *transmissions)
ros_ethercat_model::RobotState fake_state_
void writeSim(ros::Time time, ros::Duration period)
static const std::string j0_transmission_name
boost::unordered_map< std::string, std::string > j2_j1_joints_