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

rosbag cannot record topics published by rosgo #26

Open
gelin opened this issue Jul 16, 2019 · 0 comments
Open

rosbag cannot record topics published by rosgo #26

gelin opened this issue Jul 16, 2019 · 0 comments

Comments

@gelin
Copy link

gelin commented Jul 16, 2019

ROS Melodic.

I'm trying to rosbag record /bagfiles/disk_usage where /bagfiles/disk_usage is a topic of a custom type bafiles/DiskUsage published using rosgo.

The rosgo application prints:

2019/07/16 16:42:00 [DEBUG] Slave API requestTopic(/rosbag_SyKvsmoy, /bagfiles/disk_usage, ...) called.
2019/07/16 16:42:00 [DEBUG] TCPROS requested
2019/07/16 16:42:00 [DEBUG] [TCPROS 172.24.0.1 50834]
2019/07/16 16:42:00 [DEBUG] Connected 172.24.0.3:53490
2019/07/16 16:42:00 [DEBUG] defaultPublisher.listenRemoteSubscriber loop
2019/07/16 16:42:00 [DEBUG] remoteSubscriberSession.start enter
2019/07/16 16:42:00 [DEBUG] TCPROS Connection Header:
2019/07/16 16:42:00 [DEBUG]   `callerid` = `/rosbag_SyKvsmoy`
2019/07/16 16:42:00 [DEBUG]   `md5sum` = `*`
2019/07/16 16:42:00 [DEBUG]   `tcp_nodelay` = `0`
2019/07/16 16:42:00 [DEBUG]   `topic` = `/bagfiles/disk_usage`
2019/07/16 16:42:00 [DEBUG]   `type` = `*`
2019/07/16 16:42:00 [DEBUG] remoteSubscriberSession.start exit
INFO Disconnected                                  subscriber= topic=/bagfiles/disk_usage
2019/07/16 16:42:00 [ERROR] remoteSubscriberSession &{0xc0001181e8 //bagfiles /bagfiles/disk_usage uint64 size_bytes       # disk size in bytes
uint64 used_bytes       # disk used space in bytes
uint64 avail_bytes      # disk available space in bytes
uint8 avail_percent     # disk available space in percent
 7858263e4ebcc3dbe66fcc0534a2cf5c bagfiles/DiskUsage 0xc00016a720 0xc000112f60 0xc0002161e0 0xc000126808 0x8a3a50 0x8a3cc0} error: Incomatible message type!

rosbag subscribes to the topics using the headers type="*" and md5sum="*".
While the rosgo makes this check during subscription:

    if headerMap["type"] != session.typeName || headerMap["md5sum"] != session.md5sum {
        panic(errors.New("Incomatible message type!"))
    }

Probably, some support for the wildcard "*" type and md5sum should be added.

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