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

Error in motion rosbag #28

Open
bit-pirate opened this issue Mar 25, 2014 · 3 comments
Open

Error in motion rosbag #28

bit-pirate opened this issue Mar 25, 2014 · 3 comments
Assignees

Comments

@bit-pirate
Copy link
Contributor

Moved over from robotics-in-concert/rocon_storytelling#5.


I send the robosem_motion_lala with motion play back.
and following error occurred.

[ INFO] [1395736629.777442056]: Controller: switched from trajectory #176 to #177 at t = 0.2s [/robosem/upper_body_controller].
Error:   Received an invalid TCPROS header.  Each line must have an equals sign.
         at line 96 in /tmp/buildd/ros-hydro-cpp-common-0.4.3-0precise-20140303-2233/src/header.cpp
[ INFO] [1395736629.909622907]: Action server: preempted, preparing to merge with the new goal [/robosem/upper_body_controller].
terminate called after throwing an instance of 'rosbag::BagFormatException'
  what():  Error parsing header
[ INFO] [1395736629.909779660]: Action server: Sorting incoming trajectory. [/robosem/upper_body_controller]
[ INFO] [1395736629.909879170]: Action server: Finished sorting trajectory. [/robosem/upper_body_controller].
[ INFO] [1395736629.909904422]: Action server: Accepting new action trajectory #178, which is now the active action goal. [/robosem/upper_body_controller].
[ INFO] [1395736629.917205621]: Interpolator: now processing goal 178 [/robosem/upper_body_controller]
[ INFO] [1395736629.917306754]: Interpolator: Trajectories planned to be merged at t = 0.19s. [/robosem/upper_body_controller]
[ INFO] [1395736629.917370198]: Interpolator: Starting interpolation. [/robosem/upper_body_controller]
[ INFO] [1395736629.917863135]: Interpolator: Interpolation done. [/robosem/upper_body_controller]
[ INFO] [1395736629.917925074]: Interpolator: goal trajectory 178 has been successfully processed and was sent to the controller [/robosem/upper_body_controller].
[ INFO] [1395736629.977428373]: Controller: switched from trajectory #177 to #178 at t = 0.2s [/robosem/upper_body_controller].
[rocon_robosem/motion_player-3] process has died [pid 9588, exit code -6, cmd /home/dwlee/work/robosem_motion/devel/lib/motion_retargeting/motion_player_rosbag_fjta __name:=motion_player __log:=/home/dwlee/.ros/log/8d1250f2-b3d9-11e3-8860-5404a6b6da5d/rocon_robosem-motion_player-3.log].
log file: /home/dwlee/.ros/log/8d1250f2-b3d9-11e3-8860-5404a6b6da5d/rocon_robosem-motion_player-3*.log
@bit-pirate
Copy link
Contributor Author

@dwlee, seems like the rosbag is corrupted:

http://ros-users.122217.n3.nabble.com/bag-file-corruption-problem-tt4020488.html#none

I'll check what how this can be fixed. Maybe this tool is helpful: https://github.com/SimonEbner/rosbagPatcher

@bit-pirate
Copy link
Contributor Author

Motions also not working:

  • robosem_motion_bum_touching

@bit-pirate
Copy link
Contributor Author

This finally turned out to be a an issue of managing the open and closing of multiple rosbags.
Couldn't figure what exactly was the problem - it has something to do with the initialisation of the rosbag::Bag class and assignment to a new instance.

I'm now using boost::shared_ptr, which resolves this issue.

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