Skip to content

Commit

Permalink
improve code
Browse files Browse the repository at this point in the history
Signed-off-by: Shi <Qiyao.Shi@streetscooter.com>
  • Loading branch information
Shi authored and Shi committed Feb 20, 2020
1 parent 264144f commit d2ffe19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rosbag2_transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ find_package(ament_cmake_ros REQUIRED)
find_package(rcl REQUIRED)
find_package(rclcpp REQUIRED)
find_package(rcutils REQUIRED)
find_package(rosidl_typesupport_introspection_cpp)
find_package(rosidl_typesupport_introspection_cpp REQUIRED)
find_package(rmw REQUIRED)
find_package(rosbag2_compression REQUIRED)
find_package(rosbag2_cpp REQUIRED)
Expand Down
2 changes: 1 addition & 1 deletion rosbag2_transport/src/rosbag2_transport/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ void Player::calculate_position_with_align(const uint8_t * dds_buffer_ptr, const
data_size = sizeof (float);
break;
case ::rosidl_typesupport_introspection_cpp::ROS_TYPE_FLOAT64:
data_size = sizeof (double);
data_size = sizeof (uint64_t);
break;
case ::rosidl_typesupport_introspection_cpp::ROS_TYPE_INT16:
data_size = sizeof (int16_t);
Expand Down

0 comments on commit d2ffe19

Please sign in to comment.