21 bool init_result =
init();
42 sensor_msgs::Imu imu_out = *imu_in;
43 imu_out.linear_acceleration.x = 0.0;
44 imu_out.linear_acceleration.y = 0.0;
45 imu_out.linear_acceleration.z =
GRAVITY;
50 int main(
int argc,
char* argv[])
52 ros::init(argc, argv,
"flat_world_imu_node");
ros::Publisher publisher_
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())
ros::Subscriber subscriber_
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
void msgCallback(const sensor_msgs::ImuConstPtr imu_in)
int main(int argc, char *argv[])
Publisher advertise(const std::string &topic, uint32_t queue_size, bool latch=false)
ros::Time last_published_time_