-
Notifications
You must be signed in to change notification settings - Fork 12
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
controlling motors and using multiple sensors #2
Comments
I tried to rostopic pub /ev3dev/OutPortA/command std_msgs/Float64 5.0 but nothing happend |
|
I tired once again. but the same.. the motor doesn't work. I unpluged cables of motors from my ev3 brick and tried
but no error occurred and it seemed that all controllers of the motors loaded successfully. ( when I tried to do the same thing in ultrasonic sensor, some errors occurred and I had to pluged in the cable of ultrasonic sensor to exactly "in2" / This is specified in ultrasonic.yaml ) So I wonder if the controllers work properly. Can you check this out?.. ps) I checked motors working when I ev3_ev3dev-lang demo. root@ev3dev:~# ev3_manager inho@ubuntu:~/catkin_ws/src/beginner_tutorials$ roslaunch h4r_ev3_launch motors.launch started roslaunch server http://ubuntu:34882/ SUMMARYPARAMETERS
NODES ROS_MASTER_URI=http://localhost:11311 core service [/rosout] found |
my ev3 motors now work. I found out that motor.launch should be launched on ev3dev because the device files of motors and sensors are located in ev3dev file system and ev3_manager node only can be associated with the files in ev3dev if I'm right. Because I "roslaunch motor.launch" in host linux(the one where I run roscore), I prevented running ev3_manager_node from motor.launch by deleting two lines about it. I use ev3_manager in yocto ev3dev instead. |
Ah - you launched it on your PC... Well it would work if you build serial adapters for your PC and compile and install the drivers... |
Oh! That is good tip for me. Thank you so much. |
Hello again!
I've tried to operate your pkgs and I have a couple of questions.
I roslaunched ultrasonic.launch, motor.launch successfully but I have a problem with using topics.
I could manage to subscribe the topic "/ultrasonic" but I don't know how to publish topic "/ev3dev/OutportA/command"
I googled for days but I still no have idea to make the motors work.
I found the type of topic "command" is "std_msg/Float64".
Q1) Does that mean I should publish just velocity of motors??? or something more than that?
Because topic "joint_states" publishes multiple values, I don't think I should publish just velocity of motors.
Please give me a hint or show me your source code of publisher node (the one used on your Youtube demo) if you are ok..
Q2) Can I launch multiple sensors??
Because I launched ultrasonic sensor and again launched color sensor and the formal one died..
I'm gonna try to modify launch files but before that, I want to ask you about it first.
Thanks a lot.
My topic lists are below
Published topics:
Subscribed topics:
The text was updated successfully, but these errors were encountered: