Questions tagged [serialization]
The serialization tag has no usage guidance.
16
questions
0
votes
0
answers
40
views
ROS2 rclcpp serialization : Cannot deserialize message of type geometry_msgs/msg/transform_stamped
I'm trying to plot the trajectory of a Crazyflie2 drone which is record on the /tf topic of a rosbag. I reused the code copied the code from this ROS2 tutorial (https://docs.ros.org/en/rolling/...
0
votes
1
answer
9
views
Serialize map in Ros2
Hi,
I am navigating with an omnidirectional agv (ros2 foxy) and I want to use Slam localization mode while doing that. In detail I am using slam_toolbox with online_async mode at the moment.
Is there ...
0
votes
1
answer
1
view
Do a publisher and a subscriber on the same machine incur network load?
Hello all :) I have a few questions regarding ROS network communication.
I have a Publisher and a Subscriber living on Machine A, with Machine B as the ROS Master. Do they still send messages over ...
0
votes
1
answer
3
views
Adapting C++ Types in ROS Melodic
I'm trying to adapt a lot of code that already has data structures defined to ROS, so I decided to try using roscpp message adaptation since it seems like it could help make the transition easier. But ...
0
votes
1
answer
1
view
Suppressing the ROS_CREATE_SIMPLE_SERIALIZER_ARM warnings when building from source
When building ros_comm from source for an ARM architecture, I get multiple warnings about the ROS_CREATE_SIMPLE_SERIALIZER_ARM ...
0
votes
1
answer
5
views
Problems with Serial port code for Ros
I wanted the ROS pc to communicate over the UART with a microcontroller on mobile robot,
I canot use ros serial as on the controller I canot use C++ code, so I have used a wrapper code for serial port ...
0
votes
1
answer
5
views
Binary data representation in messages
Is there a documentation on how the information transferred in ros messages is stored in the message's binary data (given that I have the describing msg file) ?
E. g. if I would want to create my own ...
0
votes
1
answer
1
view
Is it possible to reuse ROS messages?
After calling publish, can I reuse the same message object to send a similar message with some small changes? Basically I'm asking if the message is already ...
0
votes
2
answers
9
views
How to serialize C++ objects containing ROS messages
Hello I have the following class I'd like to serialize:
class Foo
{ int x;
std::vector<double> bars;
moveit_msgs::RobotState _startState;
}
in the ...
0
votes
1
answer
1
view
Migration from Fuerte to Hydro
I am working on some code that I haven't made.
The thing is that I have to work in Hydro and this code was made for Fuerte.
I tried to catkinize the packages changing the manifest.xml and CMakeLists....
0
votes
1
answer
2
views
Custom classes in message files
I would like to communicate (mulitple) custom C++ classes between nodes. On the ROS wiki I have found how to adapt C++ types to be used with publish and subcribe:
http://wiki.ros.org/roscpp/Overview/...
0
votes
1
answer
5
views
How to read and writing ROS message efficient into files c++
Hi!
With the following code I am able to read and write ros message into binary files using c++.
But I have to create first memory buffer to use the ros ros::serialization::OStream or ros::...
0
votes
1
answer
1
view
Fuerte failure in serialization.h
Hi,
I am running "ptam" in gdb on a machine 1 with roscore. Machine 2 is running a process "remote-ptam" that publish and subscribe to machine 1. Both machines are linked to ...
0
votes
1
answer
5
views
I am unable to serialize and deserialize ros msgs.. Please Help
Hello Community,
I am using the ros::serialization library to serialize a ros msg type into a buffer. However when I pass the same buffer to a deserialize function it gives me the following error.
...
0
votes
2
answers
9
views
Read or write message from/to file
What is the easiest way to load/write a message from/to a file in C++?
I want something like this:
...
0
votes
1
answer
1
view
How to know where the next variable begins in a serialized message?
Hey everybody,
In the last few weeks I've been trying to serialize any ROS message received in some kind of listener node that's subscribed to all the existent topics. Once every message is serialized ...