19 #include "asr_msgs/AsrGlove.h" 20 #include "asr_msgs/AsrObject.h" 21 #include <sensor_msgs/JointState.h> 32 void callback(
const asr_msgs::AsrGloveConstPtr& msg)
65 joint_state.position[21] = msg->data[21] * (-1) + 0.1;
70 int main(
int argc,
char **argv)
76 pub_states = node.
advertise<sensor_msgs::JointState>(
"joint_states", 1);
void publish(const boost::shared_ptr< M > &message) const
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
ROSCPP_DECL void spin(Spinner &spinner)
ros::Subscriber sub_states
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
void callback(const asr_msgs::AsrGloveConstPtr &msg)
ros::Publisher pub_states
sensor_msgs::JointState joint_state