Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to publish a message "sensor_msgs/Imu"? #23

Open
jabrena opened this issue Aug 13, 2017 · 0 comments
Open

How to publish a message "sensor_msgs/Imu"? #23

jabrena opened this issue Aug 13, 2017 · 0 comments

Comments

@jabrena
Copy link

jabrena commented Aug 13, 2017

Hi,
I would like to send a message sensor_msgs/Imu but I don´t see the object in the package:
https://github.com/rctoris/jrosbridge/tree/develop/src/main/java/edu/wpi/rail/jrosbridge/messages
How to solve the problem?

In ROSJava exist this message but here, I didn´t find it:

package sensor_msgs;

public interface Imu extends org.ros.internal.message.Message {

  static final java.lang.String _TYPE = "sensor_msgs/Imu";
  static final java.lang.String _DEFINITION = 
"# This is a message to hold data from an IMU (Inertial Measurement Unit)\n#\n
# Accelerations should be in m/s^2 (not in g\'s), and rotational velocity should be in rad/sec\n#\n
# If the covariance of the measurement is known, it should be filled in (if all you know is the \n
# variance of each measurement, e.g. from the datasheet, just put those along the diagonal)\n
# A covariance matrix of all zeros will be interpreted as \"covariance unknown\", and to use the\n
# data a covariance will have to be assumed or gotten from some other source\n#\n
# If you have no estimate for one of the data elements (e.g. your IMU doesn\'t produce an orientation \n
# estimate), please set element 0 of the associated covariance matrix to -1\n
# If you are interpreting this message, please check for a value of -1 in the first element of each \n
# covariance matrix, and disregard the associated estimate.\n\nHeader header\n\ngeometry_msgs/Quaternion orientation\nfloat64[9] orientation_covariance 
# Row major about x, y, z axes\n\ngeometry_msgs/Vector3 angular_velocity\nfloat64[9] angular_velocity_covariance 
# Row major about x, y, z axes\n\ngeometry_msgs/Vector3 linear_acceleration\nfloat64[9] linear_acceleration_covariance 
# Row major x, y z \n";

  std_msgs.Header getHeader();
  void setHeader(std_msgs.Header value);

  geometry_msgs.Quaternion getOrientation();

  void setOrientation(geometry_msgs.Quaternion value);

  double[] getOrientationCovariance();

  void setOrientationCovariance(double[] value);

  geometry_msgs.Vector3 getAngularVelocity();

  void setAngularVelocity(geometry_msgs.Vector3 value);

  double[] getAngularVelocityCovariance();

  void setAngularVelocityCovariance(double[] value);

  geometry_msgs.Vector3 getLinearAcceleration();

  void setLinearAcceleration(geometry_msgs.Vector3 value);

  double[] getLinearAccelerationCovariance();

  void setLinearAccelerationCovariance(double[] value);
}

I will create the implementation and later, I will send a PR with this message and previous one: sensor_msgs/LaserScan
#21

Many thanks in advance.

Juan Antonio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant