h4r_ev3_ctrl icon indicating copy to clipboard operation
h4r_ev3_ctrl copied to clipboard

I cant connect motors and sensors

Open wilianson opened this issue 9 years ago • 6 comments

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).

wilianson avatar Feb 15 '17 20:02 wilianson

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 [email protected]:

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

mikaelv avatar Feb 16 '17 09:02 mikaelv

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?

wilianson avatar Feb 23 '17 13:02 wilianson

As said the launchfile needs to run on your computer. There is an issue in some launchfiles, which also launch the ev3_manager. The ev3_manager 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.

cyborg-x1 avatar Feb 24 '17 08:02 cyborg-x1

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

N1ghtm4r1sh avatar Mar 25 '18 15:03 N1ghtm4r1sh

@N1ghtm4r1sh Hey, have you ever tried wifi setting?

rongfeng-china avatar Jun 28 '18 23:06 rongfeng-china

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

N1ghtm4r1sh avatar Jun 29 '18 10:06 N1ghtm4r1sh