Comments (11)
I just tested my install. The px4_controller node works well, it connects through mavros to the drone and then correctly initializes it before switching to GUIDED mode. When in GUIDED, the controller node automatically arms the drone and triggers a takeoff. So far, the code works as it should. See the message output below.
from redtail.
The original Nvidia Redtail project was developed for the PX4 flight controller firmware.
It will not work with the Arducopter stack.
If you want to run it with Arducopter, you can try the code here:
https://github.com/ArduPilot/redtail
or try my Redtail fork from there.
from redtail.
@mtbsteve , thanks for your reply, I went through your fork, that's great and I will keep watching.
but the problem is that, the flushed pixhawk firmware should at least respond to mavros, I have not gone so far to the px4 controler part.
my fireware is pixhawk 2.4.8
flushed with ChibiOS-multirotor-ArduCopter V3.6.11 and Nuttx-multirotor-ArduCopter V3.6.11
neither of them work for
roslaunch mavros apm.launch fcu_url:="/dev/ttyTHS2:921600" gcs_url:="udp://@YOUR_GCS_IP"
but the px4fmu-v2_lpe.px4 works fine
from redtail.
As I mentioned above, the original Nvidia redtail code will not work with Arducopter out of the box.
It requirs the px4 code installed on the pixhawk.
For Arducopter, you would need apsync along with mavlink_router installed. The mavros node will then listen to mavlink_router. Also, you would need the changes to the Redtail px4_controller code as included in the git I linked above.
from redtail.
So mavros runs well for me along with my Arducopter 3.6.10 setup.
from redtail.
@mtbsteve the Arducopter code for px4_controller.cpp located
https://github.com/ArduPilot/redtail/blob/master/ros/packages/px4_controller/src/px4_controller.cpp
could not get the apm stacked firmware armed.
for example, the code below:
apm stack did not even have offboard mode, it will stuck here, unless I changed the code.
if (fcu_state_.mode != vehicle_->getOffboardModeName() && (ros::Time::now() - last_request > ros::Duration(5.0)))
{
// Enable OFFBOARD mode
if (setmode_client_.call(offb_setmode) && offb_setmode.response.mode_sent)
{
ROS_INFO("Offboard enabled");
}
last_request = ros::Time::now();
}
from redtail.
Arducopter does not have an OFFBOARD mode. The equivalent flight mode is called GUIDED.
This is taken care in the Arducopter code of Redtail, see here:
https://github.com/mtbsteve/redtail/blob/4d5602934e6eaaa8b7b637807b41e73c93cbe3cc/ros/packages/px4_controller/include/px4_controller/px4_controller.h#L118
from redtail.
thanks bro @mtbsteve .
I has not install the async nor the mavlink_router.
I will test the Arducopter version, thanks.
from redtail.
by the way, any changes have you done in your forkcompared to https://github.com/ArduPilot/redtail?
from redtail.
Plenty. Just check the commit log.
Btw, if you want to run apsync with Jetpack 4.2.x, follow these instructions:
https://github.com/mtbsteve/companion/blob/next-tx2/Nvidia_JTX2_JP42/Ubuntu/1_create_base_image_tx2_JP42.txt
The official release doesnโt support Jetpack 4.2
from redtail.
thanks, I will dig into the urls and learn about it.
but funny that I managed to get the original redtail load up with ArduCopter fireware, and stopped with offboard mode.
I will share time learn about the arducopter throughly, thanks
from redtail.
Related Issues (20)
- camera image not received for gscam kind camera in trailnet_debug_gscam.launch/trailnet_debug_zed_gscam.launch
- stereoDNN resnet18 test fails HOT 2
- gscam problem with no video shown, even not shown in rqt-image window, not even gst-launch on host machine HOT 1
- gscam donot stream on nano,but do stream on tx2
- lateral offset dataset
- Failed with error code 1 in /tmp/pip-build-U_9LbZ/numpy/
- Extended Redtail implementation for Arducopter HOT 7
- Training Resnet18_2D
- Error Loading TensorRT plan for ResNet-18_2D HOT 1
- Testing in Simulator
- Regarding tensorRT of TrailNet_SResNet-18 HOT 1
- Takeoff Mode Initiated Mid-air when starting px4_controller node in Navigate Mode HOT 2
- Unable to complete build_redtail_image.sh script HOT 3
- clarification on difference between visionworks and redtail? HOT 1
- Dataset used for training HOT 2
- The segmentation effect in your video HOT 1
- Jetpack 4.4 caffe_ros node Assertion failed HOT 3
- 2.4 GHz range cut due to Jetson RF noise HOT 6
- Could not find a configuration file for package "OpenCV"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redtail.