Hacks4ROS / h4r_ev3_ctrl

ROS Node for managing EV3 with ROS Control
GNU General Public License v3.0
21 stars 12 forks source link

I cant connect motors and sensors #10

Open wilianson opened 7 years ago

wilianson commented 7 years ago

Hi There, I am working with my Ev3 and ROS, I have reached to connect my Ev3 with my computer through USB cable with the SSH protocol , but I am not clear about what is the next step? I don't know where exactly should be launched the files described in the tutorial if is in the Ev3 brick or in the computer connected to the Ev3. And if is neccesary to connect to the internet the ev3 brick in order to connect sensors and motor, because now I don't have the Edimax device (is still in transit, i bought it from amazon).

mikaelv commented 7 years ago

Hi there,

You need to run the launch files on your computer: roslaunch ./motors.launch ev3_hostname:=ev3dev

You don't need to connect to the internet. However you need to check the connectivity and possibly change your /etc/hosts file on the EV3 and on your computer. See here: http://wiki.ros.org/ROS/NetworkSetup

From your computer, you must be able to run ping ev3dev

From the EV3, you must be able to run ping master

I hope this helps.

Best Regards,

Mikael

2017-02-15 20:05 GMT+00:00 wilianson notifications@github.com:

Hi There, I am working with my Ev3 and ROS, I have reached to connect my Ev3 with my computer through USB cable with the SSH protocol , but I am not clear about what is the next step? I don't know where exactly should be launched the files described in the tutorial if is in the Ev3 brick or in the computer connected to the Ev3. And if is neccesary to connect to the internet the ev3 brick in order to connect sensors and motor, because now I don't have the Edimax device (is still in transit, i bought it from amazon).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Hacks4ROS/h4r_ev3_ctrl/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AHMRNR_1sTmD5U83aW3lAWzHw2p8cOzQks5rc1qJgaJpZM4MCLwO .

-- Mikael Valot

wilianson commented 7 years ago

Hi again, I have download the package from this githubhttps://github.com/Hacks4ROS/h4r_ev3_ctrl firstly when I made the "catkin_make install" It said that some files are missing these are the files: /home/percy/catkin_ws/src/h4r_ev3_ctrl/h4r_ev3_manager/launch/ev3.launch and /home/percy/catkin_ws/src/h4r_ev3_ctrl/h4r_ev3_manager/ctrl_cfg/ev3.yaml . I have found two files with different names so, I copy and and rename with the name required, so I have finally compile succesfully. Now I have tried to launch the /home/percy/catkin_ws/src/h4r_ev3_ctrl/h4r_ev3_launch/launch/infrared.launch (with this command roslaunch infrared.launch ev3_hostname:=ev3dev) and it launch this error: raise ResourceNotFound(name, ros_paths=self._ros_paths) ResourceNotFound: h4r_ev3_control_launch ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks What can I do now, the way I compile and install the package is right?

cyborg-x1 commented 7 years ago

As said the launchfile needs to run on your computer. There is an issue in some launchfiles, which also launch the ev3_manager. The ev3manager needs to run on the brick(only!)_ and it is already installed in the image. The launchfiles need to run on the PC. If there should be the node ev3_manager, this is wrong ... there is already another issue for that. You do not need to compile anything for your PC.

N1ghtm4r1sh commented 6 years ago

Hi guys, i'm having the same problem. I am running the ev3_manager on the brick (only!) and the launchfiles on the PC...but i have the exactly error. Could someone help me ?? I am using a ubuntu 14.04 as master and i can do ping ev3dev on my computer and ping master on the brick

I have solved this matter; just edit color.launch, infrared.launch, touch.launch and ultrasonic.launch. Change where it says find h4r_ev3_control_launch by find h4r_ev3_launch

rongfeng-china commented 6 years ago

@N1ghtm4r1sh Hey, have you ever tried wifi setting?

N1ghtm4r1sh commented 6 years ago

@rongfeng-china No, I don´t have a wifi USB...I am working with the EV3 USB cable