Open bobolodrone opened 3 years ago
Hi, Can you provide the codes used on the Raspi to communicate with CUBE orange. Also I appreciate if you could provide the python codes for communicating through RASPi with the obstacle sensor or is this done by the CUBE .
I am available to discuss if there is any commercial portion involved with our discussion :)) :
thank you S.J
i everyone, I started building an hexacopter (flame f550) using a raspberry 4 and the orange cube with optical flow and a leddar One. I have installed mavros. I’m trying to get the raspberry to communicate with the cube. I can see the topics and read what they publish. But I have these problems:
At the beginning i couldn 't see the eco of the topics so i use this line “rosservice call /mavros/set_stream_rate 0 10 1”( is it correct?) but i can’t see the eco of local_position/pose. Do you know why or how i could solve this problem? my second problem is that the copter could not take off. I switched the mode in guided and arm the copter then I tried to publish a velocity with “mavros/setpoint_velocity/cmd_vel_unstamped” but the copter didn’t listen to me. So i tried to use “mavros/setpoint_position/local” but nothing. i think that for now i can’t use setpoint_position because i don’t have an echo from local position. My question is : what am I doing wrong? I attached mavros diagnostic, checkid and my simple code ( here i used mavros/setpoint_velocity/cmd_vel_unstamped) . if you need i can attached the ardupilot parameters.
MAVROS version and platform
Mavros: 1.5 ROS: Kinetic Ubuntu: 16.04
Autopilot type and version
[ x ] ArduPilot [ ] PX4
Diagnostics
header: seq: 3225 stamp: secs: 1455211327 nsecs: 788299841 frame_id: '' status:
header: seq: 602 stamp: secs: 1455211328 nsecs: 486817841 frame_id: '' status:
- level: 0 name: "mavros: GPS" message: "3D fix" hardware_id: "/dev/serial0:921600" values:
- level: 0 name: "mavros: Heartbeat" message: "Normal" hardware_id: "/dev/serial0:921600" values:
- level: 0 name: "mavros: System" message: "Normal" hardware_id: "/dev/serial0:921600" values:
- level: 1 name: "mavros: Battery" message: "Low voltage" hardware_id: "/dev/serial0:921600" values:
- level: 0 name: "mavros: Time Sync" message: "Normal" hardware_id: "/dev/serial0:921600" values:
Check ID
Received 7951 messages, from 2 addresses sys:comp list of messages 1:0 0 1:1 0, 129, 2, 132, 193, 136, 137, 152, 150, 24, 27, 29, 30, 33, 35, 1, 165, 42, 173, 178, 182, 62, 65, 74, 77, 163, 36, 100, 111, 241, 116, 125
drone_velocita_takeoffland_LEDDAR.txt