-
Notifications
You must be signed in to change notification settings - Fork 9
Docmentation for running gendeps2 #44
Comments
Internal tracking ticket: FG-6257 |
Based on reading #24 I believe you may need to run What are you planning to use the generated |
Related: I thought that
I suspect we don't actually build gendeps2 for the library release which would make sense since it has nothing to do with the features of the library. Maybe we need a new home for it? |
Reply to jtbandes Thank you for the instructions! It is now working.
I'm trying to write custom ROS2 messages directly to an MCAP file. By reading the documentation of MCAP, I figured that I need a special Do you have a recommended workflow for similar tasks? Thanks! |
For ROS 2 data, I'd recommend using the built-in ROS 2 bag writer APIs, these should work fine with custom messages:
|
Do you mean that even for customized messages, the ways shown in the above python/c++ examples can write messages directly to MCAP? Then how do the schemes of the custom messages get set up for the MCAP writer? |
Yes, rosbag2 handles it internally. See https://github.com/ros2/rosbag2/blob/rolling/docs/message_definition_encoding.md |
Thank you for pointing me to the documentation. Sorry, I think I didn't mention that I need to do this as an offline pre-processing because I'm working on an iOS App that does not have (good) support for C++/Python. I am trying to write customized data as ROS2 messages and save them into an MCAP file. My current solution is generating these .msg files for my customized messages and using these files in the App. |
Description
Sorry to bother you with this. I think we need simple documentation for people to run
gendeps2
locally, especially for people like me who come from a C++/python background and know nothing about JavaScript/TypeScript.Steps To Reproduce
Just want to use
gendeps2
to generate similar files that are recorded at https://github.com/foxglove/rosmsg-msgs-common/tree/mainI have zero experience with JavaScript/TypeScript and related things. I did everything by quickly googling around. But apparently, I messed up some simple things. The following is what I did.
After the above operations, I have
gendeps2
available locally in my terminal. But when I doI got the following error
I checked the source folder and there is a
dist
folder with the content ofExpected Behavior
I think I have done something stupid but I cannot tell by myself. However, what I'm expecting to see is the terminal complains like
as designed at
rosmsg/src/gendeps2.ts
Line 14 in 1b9df73
My final goal is to use
gendeps2
to generate.msg
files that look like those recorded in foxglove/rosmsg-msgs-common, where a single.msg
file contains all the content of its dependent messages.Thank you!
The text was updated successfully, but these errors were encountered: