Skip to content
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

Bad CRC Errors ; Unexpected byte value in Cdr::deserialize(bool),expected 0 or 1 #152

Open
Aravind-Adhith opened this issue Aug 25, 2022 · 4 comments

Comments

@Aravind-Adhith
Copy link

Hi @TSC21 @dagar ,

We am trying to establish the px4 ros2 bridge using serial communication. We tried the following versions but RTPS build for the fmu-v5 fails.

Can you please point us to the right repos.
Ubuntu LTS 20.04
px4_ros_com - master
px4_msgs - master
Fast RTPS version - 1.0.4
PX4 Autopilot - master
For this above combination, we are not able to build the RTPS firmware for the Pixhawk 4 and 6C.

Ubuntu LTS 20.04
px4_ros_com - master
px4_msgs - master
Fast RTPS version - 1.0.4
PX4 Autopilot - v1.13.0
For this combination, the colcon build for the px4_ros_com fails, even when we generate the px4_msgs from the "PX4-Autopilot/blob/main/msg/tools/uorb_to_ros_urtps_topics.py".

Any help for this is appriciated.

IMG_4495

1

@Aravind-Adhith
Copy link
Author

Update :
The below configuration allows us to run the agent, but we are getting Bad CRC errors. And it still crashes when we set the Baud rate greater than or equal to 115200.

Ubuntu LTS 20.04
px4_ros_com - April 2022 commit ; SHA1 : 1562ff3
px4_msgs - master - but msgs generated from Firmware v1.13.0 and copied
Fast RTPS version - 1.0.4
PX4 Autopilot - v1.13.0

@mengchaoheng
Copy link

the same problem

parallels@ubuntu-linux-20-04-desktop:~/px4_ros_com_ros2/src/px4_ros_com$ micrortps_agent -t UDP
--- MicroRTPS Agent ---
[   micrortps_agent   ]	Starting link...
[   micrortps_agent   ]	UDP transport: ip address: 127.0.0.1; recv port: 2020; send port: 2019
[ micrortps_transport ]	UDP transport: Trying to connect...
[ micrortps_transport ]	UDP transport: Connected to server!

---   Subscribers   ---
- DebugArray subscriber started
- DebugKeyValue subscriber started
- DebugValue subscriber started
- DebugVect subscriber started
- OffboardControlMode subscriber started
- SensorOpticalFlow subscriber started
- PositionSetpoint subscriber started
- PositionSetpointTriplet subscriber started
- TelemetryStatus subscriber started
- Timesync subscriber started
- VehicleCommand subscriber started
- VehicleLocalPositionSetpoint subscriber started
- TrajectorySetpoint subscriber started
- VehicleTrajectoryWaypoint subscriber started
- OnboardComputerStatus subscriber started
- TrajectoryBezier subscriber started
- VehicleTrajectoryBezier subscriber started
- VehicleMocapOdometry subscriber started
- VehicleVisualOdometry subscriber started
-----------------------

----   Publishers  ----
- Timesync publishers started
- TrajectoryWaypoint publisher started
- VehicleControlMode publisher started
- VehicleOdometry publisher started
- VehicleStatus publisher started
- CollisionConstraints publisher started
- TimesyncStatus publisher started
- SensorCombined publisher started
- VehicleTrajectoryWaypointDesired publisher started
-----------------------
terminate called after throwing an instance of 'eprosima::fastcdr::exception::BadParamException'
  what():  Unexpected byte value in Cdr::deserialize(bool), expected 0 or 1
Aborted (core dumped)

@vegaf1
Copy link

vegaf1 commented Sep 12, 2022

Same error as @mengchaoheng

@maxpolzin
Copy link

Did you try regenerating the ROS message definitions from your PX4-Autopilot repo using the respective script, see https://discuss.px4.io/t/issues-running-ros2-px4/28400/20?u=maxinho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants