Closed hamburguesa66 closed 6 years ago
I believe the error may be in your note durations. They should be floating point values in the range [0, 4). You are assigning much larger values than 4.
I've recently pushed some updated examples to libcreate. You can check out play_song.cpp, which works for me on Create 2.
Hi. First of all, amazing work guys.
I am working with an Create 1 robot (ROS Kinectic, Ubuntu 16.04), and i can't make it play a song. I want to play the Imperial March, as explained in this link. The example is written in Python, and i need it in C++.
Here is my code:
` ros::init(argc, argv, "musica"); ros::NodeHandle n;
No compilation errors. But when i run the node, the create_1.launcher console puts "Bad Song Definition" (or something like that).
¿Am i doing something wrong? ¿Can you give me an example on how to define and play a simple song (or a beep)? Even by console, like "rostopic pub -1 ...."
Thanks in advance. Greetings from Argentina.