Code Monkey home page Code Monkey logo

Comments (12)

wyd0817 avatar wyd0817 commented on July 19, 2024 3

Thanks for your reply, I found the mistake. I made a particularly basic mistake, I was wrongly sourcing the .bash file in mac os, the correct one should be the .zsh file. That's it, it was fixed.

from robostack.github.io.

Tobias-Fischer avatar Tobias-Fischer commented on July 19, 2024

Can you please provide the exact commands that you run, and some way that we can easily replicate the error?

from robostack.github.io.

wyd0817 avatar wyd0817 commented on July 19, 2024

Thank you for your quick response.
I ran the following command.
source/install.setup.bash
Here is a screenshot of what I did.
image
BTW, I was able to successfully compile the ros2 project.

from robostack.github.io.

Tobias-Fischer avatar Tobias-Fischer commented on July 19, 2024

What is contained in your colcon_ws?

from robostack.github.io.

wyd0817 avatar wyd0817 commented on July 19, 2024

There is only one ros_tcp_endpoint open source library.
image

from robostack.github.io.

Tobias-Fischer avatar Tobias-Fischer commented on July 19, 2024

Can you list all files in the colcon_ws?

from robostack.github.io.

wyd0817 avatar wyd0817 commented on July 19, 2024

Sure, here's a list of colcon_ws:

tree     
.
├── build
│   ├── COLCON_IGNORE
│   └── ros_tcp_endpoint
│       ├── colcon_build.rc
│       ├── colcon_command_prefix_setup_py.sh
│       ├── colcon_command_prefix_setup_py.sh.env
│       ├── launch
│       │   └── endpoint.py -> /Users/wangyongdong/colcon_ws/src/ROS-TCP-Endpoint/launch/endpoint.py
│       ├── package.xml -> /Users/wangyongdong/colcon_ws/src/ROS-TCP-Endpoint/package.xml
│       ├── prefix_override
│       │   ├── __pycache__
│       │   │   └── sitecustomize.cpython-310.pyc
│       │   └── sitecustomize.py
│       ├── resource
│       │   └── ros_tcp_endpoint -> /Users/wangyongdong/colcon_ws/src/ROS-TCP-Endpoint/resource/ros_tcp_endpoint
│       ├── ros_tcp_endpoint -> /Users/wangyongdong/colcon_ws/src/ROS-TCP-Endpoint/ros_tcp_endpoint
│       ├── ros_tcp_endpoint.egg-info
│       │   ├── PKG-INFO
│       │   ├── SOURCES.txt
│       │   ├── dependency_links.txt
│       │   ├── entry_points.txt
│       │   ├── requires.txt
│       │   ├── top_level.txt
│       │   └── zip-safe
│       ├── setup.cfg -> /Users/wangyongdong/colcon_ws/src/ROS-TCP-Endpoint/setup.cfg
│       ├── setup.py -> /Users/wangyongdong/colcon_ws/src/ROS-TCP-Endpoint/setup.py
│       └── share
│           └── ros_tcp_endpoint
│               └── hook
│                   ├── pythonpath_develop.dsv
│                   ├── pythonpath_develop.ps1
│                   └── pythonpath_develop.sh
├── install
│   ├── COLCON_IGNORE
│   ├── _local_setup_util_ps1.py
│   ├── _local_setup_util_sh.py
│   ├── local_setup.bash
│   ├── local_setup.ps1
│   ├── local_setup.sh
│   ├── local_setup.zsh
│   ├── ros_tcp_endpoint
│   │   ├── lib
│   │   │   ├── python3.10
│   │   │   │   └── site-packages
│   │   │   │       └── ros-tcp-endpoint.egg-link
│   │   │   └── ros_tcp_endpoint
│   │   │       └── default_server_endpoint
│   │   └── share
│   │       ├── ament_index
│   │       │   └── resource_index
│   │       │       └── packages
│   │       │           └── ros_tcp_endpoint
│   │       ├── colcon-core
│   │       │   └── packages
│   │       │       └── ros_tcp_endpoint
│   │       └── ros_tcp_endpoint
│   │           ├── hook
│   │           │   ├── ament_prefix_path.dsv
│   │           │   ├── ament_prefix_path.ps1
│   │           │   ├── ament_prefix_path.sh
│   │           │   ├── pythonpath.dsv
│   │           │   ├── pythonpath.ps1
│   │           │   └── pythonpath.sh
│   │           ├── launch
│   │           │   └── endpoint.py
│   │           ├── package.bash
│   │           ├── package.dsv
│   │           ├── package.ps1
│   │           ├── package.sh
│   │           ├── package.xml
│   │           └── package.zsh
│   ├── setup.bash
│   ├── setup.ps1
│   ├── setup.sh
│   └── setup.zsh
├── log
│   ├── COLCON_IGNORE
│   ├── build_2023-04-19_14-58-57
│   │   ├── events.log
│   │   ├── logger_all.log
│   │   └── ros_tcp_endpoint
│   │       ├── command.log
│   │       ├── stderr.log
│   │       ├── stdout.log
│   │       ├── stdout_stderr.log
│   │       └── streams.log
│   ├── latest -> latest_build
│   └── latest_build -> build_2023-04-19_14-58-57
├── pure_pursuit.rviz
└── src
    └── ROS-TCP-Endpoint
        ├── CHANGELOG.md
        ├── CODE_OF_CONDUCT.md
        ├── CONTRIBUTING.md
        ├── LICENSE
        ├── README.md
        ├── launch
        │   └── endpoint.py
        ├── package.xml
        ├── requirements.txt
        ├── resource
        │   └── ros_tcp_endpoint
        ├── ros_tcp_endpoint
        │   ├── __init__.py
        │   ├── __pycache__
        │   │   ├── __init__.cpython-310.pyc
        │   │   ├── client.cpython-310.pyc
        │   │   ├── communication.cpython-310.pyc
        │   │   ├── default_server_endpoint.cpython-310.pyc
        │   │   ├── exceptions.cpython-310.pyc
        │   │   ├── publisher.cpython-310.pyc
        │   │   ├── server.cpython-310.pyc
        │   │   ├── service.cpython-310.pyc
        │   │   ├── subscriber.cpython-310.pyc
        │   │   ├── tcp_sender.cpython-310.pyc
        │   │   ├── thread_pauser.cpython-310.pyc
        │   │   └── unity_service.cpython-310.pyc
        │   ├── client.py
        │   ├── communication.py
        │   ├── default_server_endpoint.py
        │   ├── exceptions.py
        │   ├── publisher.py
        │   ├── server.py
        │   ├── service.py
        │   ├── subscriber.py
        │   ├── tcp_sender.py
        │   ├── thread_pauser.py
        │   └── unity_service.py
        ├── setup.cfg
        ├── setup.py
        └── test
            ├── test_copyright.py
            ├── test_flake8.py
            └── test_pep257.py

from robostack.github.io.

Tobias-Fischer avatar Tobias-Fischer commented on July 19, 2024

Can you try sourcing the zsh?

from robostack.github.io.

wyd0817 avatar wyd0817 commented on July 19, 2024

I source zsh, then my conda environment becomes (base), here is an output.
image

from robostack.github.io.

Tobias-Fischer avatar Tobias-Fischer commented on July 19, 2024

Can you clean your colcon ws, then in a new terminal activate your robostack environment, then build the ws and try again?

from robostack.github.io.

wyd0817 avatar wyd0817 commented on July 19, 2024

The unfortunate news, the result is the same.

from robostack.github.io.

Tobias-Fischer avatar Tobias-Fischer commented on July 19, 2024

I cannot replicate your issue. Please:

  • create a new robostack environment from scratch as written in the README and activate it
  • install colcon: mamba install colcon-ros
  • create a new colcon_ws with your package: mkdir -p ~/colcon_ws_new/src && git clone https://github.com/Unity-Technologies/ROS-TCP-Endpoint
  • checkout the correct branch: cd ROS-TCP-Endpoint; git checkout main-ros2
  • cd ~/colcon_ws_new
  • build your workspace: colcon build --symlink-install
  • source the workspace: . install/setup.sh (see https://docs.ros.org/en/foxy/Tutorials/Beginner-Client-Libraries/Colcon-Tutorial.html)
  • run your package: ros2 launch ros_tcp_endpoint endpoint.py

These exact steps worked for me just then. Feel free to reopen if you still have issues.

from robostack.github.io.

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.