-
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
Fix example launch files #11
Comments
Hello. I resolved it. Actually, it was memtioned in #2, but it was not clear. Concretely, what I did is below. I deleted the following tag from the exapmle of motor.launch, then it works. "node pkg="h4r_ev3_manager" type="ev3_manager_node" name="ev3_manager_node" output="screen"" I recommend the node tage above should be deleted from the example to avoid misunderstanding. Thank you. md |
Oh yeah that's right there are some issues in that one .. it should not start the manager node ... |
Hello, Have you seen the data of your ultrasonic sensor? how did you do ? because I am trying to ,test this sensor and I havent receive any data, Did you do some change in the code? |
Hello, yrosascu-san Honesty, it is not clear for me your present situation. You can communicate with ev3 via ssh? If yes, did you launch the provided launch file from your PC? I have not modificed any thing about launch file for ultrasonic. To receive the data, you need to make one node to see the ultrasonic data. Did you do that? If yes, can I see your code? Launching ultrasonic sensor does not show data. md |
@mdaiba Could share an example of your Also how did you figure out how to control motor? Cannot find any info about that. Thanks! |
@cyborg-x1 maybe you could share an example for |
Just remove the motor you do not want the controller for in the launchfile. in motors.yaml
So if you do not need OutportB:
|
@cyborg-x1 thanks for explanation, is there a place where can I read about it or maybe a code block where it's parsed and used? I've jumped into ROS stuff a month ago, hopefully it's not very dumb questions :) Btw thanks for the awesome project! |
You are welcome ;-) |
mdaiba, But I configured it as I have been recommended in the issues, but so far it does not move. Thanks for you help. |
Best thing to check first if you can rostopic pub and echo in both directions |
I reserved the IP's (brick and pc) in my router but i supposse that is my last option. My router don't have support in OpenWRT, can i use another firmware? Thanks for the suggestions. |
the DNS is the Key... It seems there is one for your Router: Otherwise you could create one with your computer: |
yrosascu Sometimes, I am confronted with same issue as you said.
Please make sure with "printenv" that your ROS_IP and ROS_MASTER_URI are reflected before you run your script (*.py) or your launch file. I found sometimes I did misspel, sometimes the setting is deleted before running my script (weird). When this issue is happen, re-run roscore and ev3_manager, and checking ROS_IP, ROS_MASTER_URI before running script is helping me. But I would like to check the route cause of this. mdaiba |
Oh yeah, now that you say this, it could be that the script is not sourcing again after applying changes. |
Function for ROS_IP: In my opinion it should work... it exports the IP directly as well. |
Hi, guys... I followed this instruction, but still got the error “[ERROR] [1528615186.304805597]: Waiting for rosmaster” "Couldn't find an AF_INET address for [http]" in lego ev3. I followed this [tutorial] (http://hacks4ros.github.io/h4r_ev3_ctrl/index.html#GettingStarted) until the end of [First steps for setting Wireless.], and I connected lego and computer with USB cable successfully. I'm able to ping from lego to computer and ping from computer to lego, so network is working. What could be the problem? Many thanks!! |
I guess again a problem with DNS. (need to do in every terminal you want to start a process to connect to the Brick. If you have a fixed IP for your computer in the network, it can go in the bashrc next to source /opt/ros/version/setup.bash) Or you need local DNS in your Network... See also, first result for search terms: ROS AF_INET on Google... https://answers.ros.org/question/163556/how-to-solve-couldnt-find-an-af_inet-address-for-problem/ |
Hello.
I am trying to start motor with using motor.launch which is provided as an example. But it does not work for me. Actually, I've already checked closed thread #2 and #6, but I am still confusing.
My situation is the follwoings:
I compiled every packages which provided in "Hacks4ROS/h4r_ev3_ctrl " in my PC. So, I am thinking that
it is possible that when I run "roslaunch motors.lauch", "h4r_ev3_manager" in my PC is started.
When I do "rosnode list", I can see "/ev3dev/ev3_manager_node", but the following command does not work.
rostopic pub /ev3dev/OutPortA/command std_msgs/Float64 "data: 5.0"
Do I need to modify "motors.launch" according to my environment? I need a hint.
Thank you.
md
The text was updated successfully, but these errors were encountered: