Comments (10)
The executable name is actually crazyflie_controller as well, so try
rosrun crazyflie_controller crazyflie_controller
The recommended usage is using launch files though, since this simplifies setting parameters etc.
from crazyflie_ros.
You can only rosrun executables, not source files. Try
rosrun crazyflie_controller controller
from crazyflie_ros.
When
rosrun crazyflie_controller controller
I get
[rosrun] Couldn't find executable named controller below /home/adaldo/catkin_ws/src/crazyflie_ros/crazyflie_controller
(To compile my project I catkin build
and then I source /devel/setup.bash
.)
However, I found out that if I
roslaunch crazyflie_controller crazyflie2.launch frame:="body"
then the controller node starts.
from crazyflie_ros.
How did I miss that!
Thank you so much.
from crazyflie_ros.
Hi, @adaldo and @whoenig, I have a programming question about this issue.
Actually, I am a beginner, so it will be very thankful if you explain specifically.
I looked over hover_vicon.launch file, and found the line that file="$(find crazyflie_controller)/launch/crazyflie2.launch".
Also, when I looked over the crazyflie2.launch file in crazyflie_controller/launch folder, I found that the line
< node name="controller" pkg="crazyflie_controller" type="crazyflie_controller" output="screen" >.
However, I do not understand this line, because there is no crazyflie_controller file in crazyflie_controller/src folder, but controller.cpp file...
Even I cannot find crazyflie_controller file at all.
Could you explain about it?
Thank you in advance.
from crazyflie_ros.
crazyflie_controller
refers to the package name and not a file name. The package name is (just in this case) identical to the folder name.
from crazyflie_ros.
Thank you for your reply, @whoenig .
In fact, the text editor did not show "the line" what I attached.
The line in crazyflie2.launch file is the following
< node name="controller" pkg="crazyflie_controller" type="crazyflie_controller" output="screen" >
According to this line, I think the package name is defined in "pkg", so package name is what you said, crazyflie_controller.
But, it also said type has the same name with pkg name....
That is, type is defined as "crazyflie_controller".
This is what I do not understand... the file "crazyflie_controller" does not exist...but controller.cpp exists in crazyflie_controller package...
Could you please explain about it for me?
Thank you.
from crazyflie_ros.
This refers to the name of the executable defined here.
from crazyflie_ros.
Thank you for clear explanation.
But, I leant from tutorial that they use it like the following
add_executable(controller src/controller.cpp).
Then, you can use
< node name="controller" pkg="crazyflie_controller" type="controller" output="screen" >
I am curious if you have any special reason for changing the name.
If there is no reason, then just ignore my question...
Thank you anyway.
from crazyflie_ros.
No reason.
from crazyflie_ros.
Related Issues (20)
- Failure to launch crazyflie_server.launch with cf firmware: 2020.06 HOT 3
- Failing to log valid LOG_GROUP ctrltarget (setpoint) HOT 2
- Frames HOT 5
- Issues about hover_vicon.launch HOT 2
- Roscpp Update Params HOT 2
- Logging Pose Fails HOT 5
- Problems with Vicon and Hovering HOT 6
- Advice on how to use the crazyflie server for low level control HOT 2
- Questions on cmd_vel HOT 1
- Cmake error HOT 4
- Reading Ranger Deck Sensor HOT 4
- 运行crazyswarm中的hove_vicon.launch报错,出现terminate called after throwing an instance of 'std::runtime_error' what(): timeout HOT 1
- Could not find <log> in log toc!
- CMake Error HOT 2
- `LIBUSB_ERROR_ACCESS` What should I DO? HOT 2
- teleop_xbox360.launch,error occurred HOT 5
- Problems about test_high_level
- hover_vicon.launch error HOT 1
- vicon_bridge: zero pose and View frame issue
- The velocity of crazyflie
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 crazyflie_ros.