Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demo_nodes_cpp/src/topics/listener_serialized_message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class SerializedMessageListener : public rclcpp::Node
// message to the callback. We can then further deserialize it and convert it into
// a ros2 compliant message.
auto callback =
[](const std::shared_ptr<rclcpp::SerializedMessage> msg) -> void
[](const std::shared_ptr<const rclcpp::SerializedMessage> msg) -> void
{
// Print the serialized data message in HEX representation
// This output corresponds to what you would see in e.g. Wireshark
Expand Down
2 changes: 1 addition & 1 deletion pendulum_control/src/pendulum_logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ int main(int argc, char * argv[])
auto logger_node = rclcpp::Node::make_shared("pendulum_logger");

auto logging_callback =
[](const pendulum_msgs::msg::RttestResults::SharedPtr msg) {
[](const pendulum_msgs::msg::RttestResults::ConstSharedPtr msg) {
printf("Commanded motor angle: %f\n", msg->command.position);
printf("Actual motor angle: %f\n", msg->state.position);

Expand Down