20 #include <std_msgs/Float64.h> 26 gripper_joint_sub_pub.
publish(msg);
29 int main(
int argc,
char **argv)
31 ros::init(argc, argv,
"gripper_sub_publisher");
35 gripper_joint_sub_pub = node_handle.
advertise<std_msgs::Float64>(
"gripper_sub_position/command", 10);
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)
ros::Publisher gripper_joint_sub_pub
ROSCPP_DECL void spin(Spinner &spinner)
int main(int argc, char **argv)
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
void gripperJointCallback(const std_msgs::Float64::ConstPtr &msg)