Git Product home page Git Product logo

Comments (4)

Eheech avatar Eheech commented on September 23, 2024

Have you tried ' /dev/ttyAMA0 ' ?

from mycobot_ros.

Eheech avatar Eheech commented on September 23, 2024

My question is if I'm running ROS on the robot's RPi, do I need to specify the port?
Re : Have to specify the port if you want to connect the machine

Secondly, if I'm running ROS core on my laptop instead, don't I just need to specify the IP address of the ROS core machine for the robot's nodes on the RPi? Why do I need to connect with a USB cable?
Re : Just specify the IP cannot connect the machine, just able to connect raspberry system

from mycobot_ros.

Eheech avatar Eheech commented on September 23, 2024

Also, you can tried ' sudo chmod 777 /dev/ttyUSB* ' , hope this command would help you.

from mycobot_ros.

blcuwc avatar blcuwc commented on September 23, 2024

Hello. This might sound like a naive question but I'm not able to figure this out from the documentation.

I have a myCobot-pi model and it has ROS-Kinetic pre-installed on it.

When I run: rosrun mycobot_ros slider_control.py

I get the error: unable to connect to "/dev/ttyUSB0"

My question is if I'm running ROS on the robot's RPi, do I need to specify the port?

Secondly, if I'm running ROS core on my laptop instead, don't I just need to specify the IP address of the ROS core machine for the robot's nodes on the RPi? Why do I need to connect with a USB cable?

Please let me know if I'm missing something or point me to some good documentation.

Please make sure that you follow the tutorial correcttly : https://www.elephantrobotics.com/docs/myCobot-en/3-development/4-ros&moveit/

These two commands should be executed in independent terminal windows before you run the rosrun command:

roscore and roslaunch mycobot_ros mycobot_slider.launch

Then run the rosrun mycobot_ros slider_control.py command in another terminal window.

Also you should check the connection between your laptop and the mycobot RPi, make sure the ports and the cable are in good condition.

As for the IP address, because of the serial interface is used in the connection between the laptop and robot, specifying the IP address is not necessary to the recognition and doesn't make sense.

Hope your problem has been addressed.

from mycobot_ros.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.