-
Notifications
You must be signed in to change notification settings - Fork 255
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
Broken regex check for SequentialWriter after MCAP merge #1336
Comments
@rshanor Could you please clarify what specifically in the service request/responses causing this failure? |
@MichaelOrlov here is a minimal way to repro. import rosbag2_py
from std_srvs.srv import SetBool
import tempfile
import uuid
writer = rosbag2_py.SequentialWriter()
storage_options = rosbag2_py._storage.StorageOptions(
uri=f"/tmp/{uuid.uuid4()}", storage_id="sqlite3"
)
converter_options = rosbag2_py._storage.ConverterOptions("", "")
writer.open(storage_options, converter_options)
msg = SetBool.Request()
msg_type = type(msg)
msg_module = msg_type.__module__
msg_name = msg_type.__name__
msg_mod_split = msg_module.split(".")
topic_type = f"{msg_mod_split[0]}/{msg_mod_split[1]}/{msg_name}"
full_name = "/example"
topic_info = rosbag2_py._storage.TopicMetadata(
name=full_name,
type=topic_type,
serialization_format="cdr",
)
writer.create_topic(topic_info) |
@emersonknapp @james-rms If you have time, your help with this issue and relevant #1286 will be very appreciated. |
Assigning to myself and looking into it now. This one should be an easy fix, the message definition scraper had a hardcoded For #1286 there is the same problem of "can't find the definition" but it's not a complete duplicate, that one deals with Actions which do not have all subtypes as plain files in the install tree. |
|
Description
I am using
rosbag2_py.SequentialWriter
class to record service requests and responses to a bag file. Code that previously worked is now throwing aValueError: Invalid topic_type: pylon_ros2_camera_interfaces/srv/SetGamma_Request
. It looks like #1163 added some regex checking to the message type which is not valid for service request and response messages: https://github.com/ros2/rosbag2/blob/rolling/rosbag2_cpp/src/rosbag2_cpp/message_definitions/local_message_definition_source.cpp#L33System (please complete the following information)
The text was updated successfully, but these errors were encountered: