Can I modify MAVROS header information?

asked 2020-07-09 05:02:16 -0600

castpuz gravatar image

updated 2020-07-09 15:45:57 -0600

jayess gravatar image

My objective is to add the new item to the current MAVROS header containing seq, stamp, and frame_id.

So, I added the new item at '~/ros/kinetic/include/std_msgs/header.h'. However, I ran MAVROS after catkin_make, but it didn't run.

How can I run it?

osboxes@osboxes:~/catkin_ws$ roslaunch mavros px4.launch fcu_url:="udp://:14540@"
... logging to /home/osboxes/.ros/log/70ee61ac-c1c1-11ea-b74c-080027b5a114/roslaunch-osboxes-11347.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.


 * /mavros/wheel_odometry/wheel1/y: 0.15
 * /rosdistro: kinetic
 * /rosversion: 1.12.14

    mavros (mavros/mavros_node)

auto-starting new master
process[master]: started with pid [11357]

setting /run_id to 70ee61ac-c1c1-11ea-b74c-080027b5a114
process[rosout-1]: started with pid [11370]
started core service [/rosout]
process[mavros-2]: started with pid [11388]
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_M_construct null not valid
REQUIRED process [mavros-2] has died!
process has died [pid 11388, exit code -6, cmd /home/osboxes/catkin_ws/devel/lib/mavros/mavros_node __name:=mavros __log:=/home/osboxes/.ros/log/70ee61ac-c1c1-11ea-b74c-080027b5a114/mavros-2.log].
log file: /home/osboxes/.ros/log/70ee61ac-c1c1-11ea-b74c-080027b5a114/mavros-2*.log
Initiating shutdown!
[mavros-2] killing on exit
[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete
edit retag flag offensive close merge delete


I've done it for you on this question, but in the future please use the preformatted text (1010101) button to format any code or terminal output. This makes it much easier to read.

jayess gravatar image jayess  ( 2020-07-09 15:46:44 -0600 )edit

Aha! Thank you for your advice!

castpuz gravatar image castpuz  ( 2020-07-10 01:25:46 -0600 )edit