ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Modify msg file

asked 2014-07-31 06:55:33 -0500

ameni mighri gravatar image

updated 2014-07-31 08:55:13 -0500

BennyRe gravatar image

HI , I try to modify an msg file ( add new field) : this my code

float64[3] hand_direction
float64[3] hand_normal
float64[3] hand_translation /: this is the new field 
float64[3] hand_palm_pos
float64 hand_pitch
float64 hand_roll
float64 hand_yaw

When i type $ rosmsg show leapros.msg i get the old content

std_msgs/Header header
  uint32 seq
  time stamp
  string frame_id
geometry_msgs/Vector3 direction
  float64 x
  float64 y
  float64 z
geometry_msgs/Vector3 normal
  float64 x
  float64 y
  float64 z
geometry_msgs/Point palmpos
  float64 x
  float64 y
  float64 z
geometry_msgs/Vector3 ypr
  float64 x
  float64 y
  float64 z

why i can't modify the msg file content ??

edit retag flag offensive close merge delete

Comments

Sorry my crystal ball is broken, we need more information. Please write HOW you tried to modify the message.

BennyRe gravatar image BennyRe  ( 2014-07-31 08:57:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-07-31 20:35:23 -0500

All the code to support messages is auto-generated, so for your changes on the .msg file to be effective the easiest way is to re-build your package.

If you are using a catking workspace try to rebuild it:

$ cd your_catking_ws
$ catkin_make

This will re-generate your messages using the new message specification.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-07-31 06:55:33 -0500

Seen: 1,467 times

Last updated: Jul 31 '14