Coder Social home page Coder Social logo

csce274's Introduction

CSCE274

Note: Homework and project assignments will be posted on the course website. All submissions will be on the course Dropbox, and grades will also be available there. Make sure to follow the submission instructions in the assignment documentation.

Instructor

Important Resources

csce274's People

Contributors

18r441m avatar ijsalman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

csce274's Issues

Setting Up Linux

So I am trying to set up Linux with Ubuntu, downloaded that, and the Rufus program. But when I load the Rufus program no devices show in the device selection drop-down box. Do I have to buy a USB or is there another way to do it?

Homework #2 Question

Whenever I try to run the 'dts devel build -- pull' command, the terminal does not continue after Step 11 and I have to kill it. Is there something I'm missing?

Homework 2 gedit issue

I'm trying to run the command gedit Dockerfile and it's giving me the error

Unable to init server: Could not connect: Connection refused

(gedit:41): Gtk-WARNING **: 13:19:23.741: cannot open display:

I googled a fix for the issue and someone stated I just needed to install GNOME via
sudo apt -y install gnome I did that and it still doesn't work.

Robot will not move

Javier_Antonio

Our robot will not move, can you please assist? This is the error code we are receiving after building.

Inserting SD into duckiebot

We ran the commands and flashed the sd. Once we put it in the Raspberry Pi, the green led starts flashing in a pattern. This seems to happen forever. The red light never turns off. The robot just shuts off eventually.

Specify Ethernet Port in Syllabus

I have discovered my laptop's ethernet port simply does not work. My partner's laptop does not have an ethernet port and needs to go and buy an adapter.

We know that the duckiebot is hypothetically able to connect to university wifi directly, but we are unable to configure it correctly.

Consider discussing this as a new laptop/system requirement to the future syllabus.

University of South Carolina Duckietown Community

I have made my account using my university email but I am unable to join the university community. Whenever I hit the "sign up" button on the community page it just tells me that I am logged in.

Setting up Linux

I followed the link on the class Github to download Linux. I downloaded the desktop image from the website and it downloaded into the DVD drive. I do not know what this means and need help.

HW2 - Unable to Create DTS Docker Container from Image

docker image ls shows the repository was downloaded correctly. Correct repo name, created 23 minutes ago, etc.
dts devel run -M -- --entrypoint=/bin/bash appears mostly normal, no error messages I can search, only two warnings that may be unrelated:
WARNING:dts:Your index is not clean (some files are not committed).
WARNING:dts:If you know what you are doing, use --force (-f) to force the execution of the command.
BUT I do not enter the container I would expect to. It simply returns me to the directory I ran it in.
docker container ls shows no running containers, nothing.
docker run -it --tty [Image ID] bash runs and enters container normally with some dts Warnings... and there's a lot of directories and files missing...

My next plan of action is to double check my docker and dependency versions (Even though I did that a week ago? ) Then maybe try a fresh pull, even though that sounds really hard to clean everything up correctly.

Bridging over ethernet to the Duckiebot

We are following the steps in the documentation but when we try to ssh to the duckiebot, the terminal shows an error message. The error message is "could not resolve the hostname".

Fedora Linux Error on dts HW2

[eric@tpad]~/Documents/College/CSCE274/csce274% dts devel build -- pull

dts : Problems with a command?
:
: Report here: https://github.com/duckietown/duckietown-shell-commands/issues
:
: Troubleshooting:
:
: - If some commands update fail, delete ~/.dt-shell/commands
:
: - To reset the shell to "factory settings", delete ~/.dt-shell
:
: (Note: you will have to re-configure.)
INFO:dts:Commands version: daffy
INFO:dts:looking at /home/ericlesslie/.dt-shell/commands-multi/daffy
DEBUG:duckietown_docker_utils:duckietown_docker_utils version 6.0.82 path /home/ericlesslie/.local/lib/python3.9/site-packages
INFO:dts:Project workspace: /home/ericlesslie/Documents/College/CSCE274/csce274

Project:
Name: csce274
Distro: master
Version: master
Index: Clean
Semantic Version: 0.0.0
Path: /home/ericlesslie/Documents/College/CSCE274/csce274
Type: template-ros
Template Version: 2
Adapters: fs dtproject git


dts : Traceback (most recent call last):
: File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
: httplib_response = self._make_request(
: File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
: conn.request(method, url, **httplib_request_kw)
: File "/usr/lib64/python3.9/http/client.py", line 1257, in request
: self._send_request(method, url, body, headers, encode_chunked)
: File "/usr/lib64/python3.9/http/client.py", line 1303, in _send_request
: self.endheaders(body, encode_chunked=encode_chunked)
: File "/usr/lib64/python3.9/http/client.py", line 1252, in endheaders
: self._send_output(message_body, encode_chunked=encode_chunked)
: File "/usr/lib64/python3.9/http/client.py", line 1012, in _send_output
: self.send(msg)
: File "/usr/lib64/python3.9/http/client.py", line 952, in send
: self.connect()
: File "/usr/lib/python3.9/site-packages/docker/transport/unixconn.py", line 43, in connect
: sock.connect(self.unix_socket)
: FileNotFoundError: [Errno 2] No such file or directory
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 439, in send
: resp = conn.urlopen(
: File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
: retries = retries.increment(
: File "/usr/lib/python3.9/site-packages/urllib3/util/retry.py", line 403, in increment
: raise six.reraise(type(error), error, _stacktrace)
: File "/usr/lib/python3.9/site-packages/urllib3/packages/six.py", line 708, in reraise
: raise value.with_traceback(tb)
: File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
: httplib_response = self._make_request(
: File "/usr/lib/python3.9/site-packages/urllib3/connectionpool.py", line 392, in _make_request
: conn.request(method, url, **httplib_request_kw)
: File "/usr/lib64/python3.9/http/client.py", line 1257, in request
: self._send_request(method, url, body, headers, encode_chunked)
: File "/usr/lib64/python3.9/http/client.py", line 1303, in _send_request
: self.endheaders(body, encode_chunked=encode_chunked)
: File "/usr/lib64/python3.9/http/client.py", line 1252, in endheaders
: self._send_output(message_body, encode_chunked=encode_chunked)
: File "/usr/lib64/python3.9/http/client.py", line 1012, in _send_output
: self.send(msg)
: File "/usr/lib64/python3.9/http/client.py", line 952, in send
: self.connect()
: File "/usr/lib/python3.9/site-packages/docker/transport/unixconn.py", line 43, in connect
: sock.connect(self.unix_socket)
: urllib3.exceptions.ProtocolError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/usr/lib/python3.9/site-packages/docker/api/client.py", line 214, in _retrieve_server_version
: return self.version(api_version=False)["ApiVersion"]
: File "/usr/lib/python3.9/site-packages/docker/api/daemon.py", line 181, in version
: return self._result(self._get(url), json=True)
: File "/usr/lib/python3.9/site-packages/docker/utils/decorators.py", line 46, in inner
: return f(self, *args, **kwargs)
: File "/usr/lib/python3.9/site-packages/docker/api/client.py", line 237, in get
: return self.get(url, **self.set_request_timeout(kwargs))
: File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 555, in get
: return self.request('GET', url, **kwargs)
: File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 542, in request
: resp = self.send(prep, **send_kwargs)
: File "/usr/lib/python3.9/site-packages/requests/sessions.py", line 655, in send
: r = adapter.send(request, **kwargs)
: File "/usr/lib/python3.9/site-packages/requests/adapters.py", line 498, in send
: raise ConnectionError(err, request=request)
: requests.exceptions.ConnectionError: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/home/ericlesslie/.local/lib/python3.9/site-packages/dt_shell/main.py", line 38, in cli_main
: cli_main
()
: File "/home/ericlesslie/.local/lib/python3.9/site-packages/dt_shell/main.py", line 195, in cli_main

: shell.onecmd(cmdline)
: File "/usr/lib64/python3.9/cmd.py", line 217, in onecmd
: return func(arg)
: File "/home/ericlesslie/.local/lib/python3.9/site-packages/dt_shell/cli.py", line 278, in
: do_command_lam = lambda s, w: do_command(klass, s, w)
: File "/home/ericlesslie/.local/lib/python3.9/site-packages/dt_shell/dt_command_abs.py", line 41, in do_command
: cls.commands[word].do_command(cls.commands[word], shell, " ".join(parts[1:]))
: File "/home/ericlesslie/.local/lib/python3.9/site-packages/dt_shell/dt_command_abs.py", line 48, in do_command
: cls.command(shell, args)
: File "/home/ericlesslie/.dt-shell/commands-multi/daffy/devel/build/command.py", line 314, in command
: docker = get_client(parsed.machine)
: File "/home/ericlesslie/.dt-shell/commands-multi/daffy/utils/docker_utils.py", line 79, in get_client
: client = docker.from_env()
: File "/usr/lib/python3.9/site-packages/docker/client.py", line 96, in from_env
: return cls(
: File "/usr/lib/python3.9/site-packages/docker/client.py", line 45, in init
: self.api = APIClient(*args, **kwargs)
: File "/usr/lib/python3.9/site-packages/docker/api/client.py", line 197, in init
: self._version = self._retrieve_server_version()
: File "/usr/lib/python3.9/site-packages/docker/api/client.py", line 221, in _retrieve_server_version
: raise DockerException(
: docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))

dts : To report a bug, please also include the contents of /home/ericlesslie/shell-debug-info.txt

Here's shell-debug-info.txt:

commands-version: daffy
dt-authentication-daffy: 0.1.5
dt-data-api-daffy: 0.1.10
duckietown-docker-utils-daffy: 6.0.82
duckietown-shell: 5.2.8
duckietown-shell-commands: 5.3.20210414
encodings:
locale: UTF-8
stderr: utf-8
stdout: utf-8
python: "3.9.6 (default, Jul 16 2021, 00:00:00) \n[GCC 11.1.1 20210531 (Red Hat 11.1.1-3)]"

Anything will help

Duckiebot unable to contact Rosmaster, and Dashboard not starting

While trying to start keyboard control I get an error stating RLException: ERROR: unable to contact ROS master at [http://duck12.local:11311] The traceback for the exception was written to the log file. I have tried looking up this issue but the only solution is to have roscore running, which I do. I have also noticed that while checking dts fleet discover the dashboard seems to always be down. These are both new errors that have never happened to me before so please let me know if you have any solution.

Recommendations on Understanding ROS Structure.

Do you have any recommendations on figuring out the ROS structure of both our idle duckiebot and the keyboard_control routine? I know that the instructions say to use rqt_graph and rostopic to help inspect the structure, but I still feel like I'm struggling on how to use these tools.

For example, when I ask people "what node converts the joystick commands to robot commands?", lots say "/duck##/joy_mapper_node". When I ask, "how do you know that for sure"... well I don't know the answer either, I'm just guessing from the title.

Package not found

I followed the video to create a ros package and named it homework3 and everything. Now when I try to run the node inside the package I am told that the homework3 package cannot be found. How do I make the package discoverable?

Can't find SD card in device list

The SD card won't show up when we try to run the command to initialize the card, but we can find it in file explorer.
image
The only drives showing up are the ones installed on my laptop.

Ubuntu/SD failure

My virtual machine will run, but ubuntu doesn’t open. I have tried closing the virtual machine and restarting my computer, but nothing will help. It comes up as a blank screen.
I believe we messed up the SD installation. When prompted for the size of the SD we gave 32, and nothing was found. However, there was one that said 50 and was the correct name, so we choose it. Then my system crashed, and I haven’t been able to open Ubuntu since. We couldn't see the root from the SD on my computer, and when used the school computer it showed. However, there was nothing on it.

Directory `/data/config/permissions` cannot be written.

So we got the SD card setup and then we're moving on to the dashboard step and not we're getting this error.

```Directory /data/config/permissions cannot be written.````

I've looked around to try and figure out whats wrong and I can't find anything.

Homework 2 Sudo Password

I think I finished setting up ubuntu correctly and so I moved on to the next part of the homework. When I got to the command gedit Dockerfile I run it and it says command gedit isn't found and to install it via: sudo apt install gedit When I try to run that command it ask me for a password and I've entered all my passwords, 'password' etc. Online it says it's the password you used when you created your Ubuntu account but I never made a password for that.

Plus I don't think these commands worked properly when I ran them.

sudo apt-get install apt-transport-https ca-certificates gnupg lsb-release

  curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

  echo \
  "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
  $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null```

DTS Docker Container Question

Why does our DTS docker container want a clean git status?
When running the command dts devel run -M -- --entrypoint=/bin/bash, my command halts with a warning to complain my index is dirty. In order to continue working I can do two things:

  1. Add -f before the mounting to force docker's hand.
  2. Add all files in the repo and commit them all with a message to make the index clean again.

Why do I have to do this? Is there some interaction between git and dts I don't understand? I haven't tried it yet, but if I deleted my .git file would dts even be able to start a container?

Cannot create docker on duckiebot

When I try to run the command:
dts devel build -H <duckiebot_name>.local
to build the docker container on the duckiebot, it stops everytime on step 11 or gives an error:
ERROR:dts:Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:38008->[::1]:53:
read: connection refused
ERROR:dts:An error occurred while building the project image.

I have also tried building the docker from a cloned repository inside the duckiebot but I was running into issues trying to install the dts shell in the duckiebot.

Error with dts devel build -H <duckiebotname>.local

We can build the container on our laptop but when we try on the duckiebot it doesnt work. When we ran this command (dts devel build -H .local) the first time we got an error after [Step 11/59] (See image 1). When we ran it again after changing nothing, the errior message does not pop up bot it just stops after [Step 11/15] (See image 2).

Image 1:
Project two -H error

Image 2:
No error

Homework 3 Questions

I am having trouble with homework 3, specifically with the first step. I cannot come to office hours due to a class conflict. What would be the best way to get help?

I Broke my Docker Container With a Spelling Error

Okay, I know this is really stupid, but I can't figure out how to fix it.
When I did Homework2, in my Dockerfile I misspelled the name of my repo and no one noticed. When spinning up my container to test my code, I found this error and decided to correct it.
ARG REPO_NAME="csce274_attemp_ii" vs.
ARG REPO_NAME="csce274_attempt_ii"
Now when I start my container, it seemingly remembers both the spelling error and the new correction. It duplicates all the code in the Catkin workspace for each, it consistently starts me in the old directory, and only the new directory is in sync with my code and github repo.
Example of starting up:
image
Well, if I delete the old directory while inside the container, it doesn't save because, duh, it's in the container.
I have searched and searched using a combo of grep, cat, and tree and there is no mention of "attemp_" without the 't' anywhere in my repo so I have no idea how Docker is remembering this old directory?

Also for the record, I really need to delete this old directory and can't just ignore it. It has caused me so much confusion and anger until I finally figured out what was really going on.

Help creating the code for the node

Create a new node in that package that publishes a command to the output of car_cmd_switch_node. Select values that make your robot drive in a ~1m diameter circle. You will have to guess in this first trial, we will test in the next few steps. Make sure that you make this node executable (chmod +x <node_name>)

In this step, we have to write up a set of code inorder to get the duckie to go in the circle. Would you be able to provide any type of guidance short of google the code and following along? As we have not done anything like this in class, or previous classes.

Error building container on Duckiebot

When we run the following build command for the first time:
dts devel build -H duck4.local
We get the following error message at step 11:

Step 11/59 : FROM ${DOCKER_REGISTRY}/duckietown/${BASE_IMAGE}:${BASE_TAG} as BASE
ERROR:dts:Get https://registry-1.docker.io/v2/: dial tcp: lookup registry-1.docker.io on [::1]:53: read udp [::1]:33033->[::1]:53: read: connection refused
ERROR:dts:An error occurred while building the project image.

When we run the build command again, the program simply hangs

We can't get the robot to run/connect

We tried to run roslaunch and got an error, so we went to fix our file and when we tried to do rsync again it wouldn't work. And we tried to build it again but get errors and we can't even use the keyboard controls. We can't move forward with trying to test it.

Traceback (most recent call last):
: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
: conn = connection.create_connection(
: File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 84, in create_connection
: raise err
: File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 74, in create_connection
: sock.connect(sa)
: ConnectionRefusedError: [Errno 111] Connection refused
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 665, in urlopen
: httplib_response = self._make_request(
: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 387, in _make_request
: conn.request(method, url, **httplib_request_kw)
: File "/usr/lib/python3.8/http/client.py", line 1252, in request
: self._send_request(method, url, body, headers, encode_chunked)
: File "/usr/lib/python3.8/http/client.py", line 1298, in _send_request
: self.endheaders(body, encode_chunked=encode_chunked)
: File "/usr/lib/python3.8/http/client.py", line 1247, in endheaders
: self._send_output(message_body, encode_chunked=encode_chunked)
: File "/usr/lib/python3.8/http/client.py", line 1007, in _send_output
: self.send(msg)
: File "/usr/lib/python3.8/http/client.py", line 947, in send
: self.connect()
: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 187, in connect
: conn = self._new_conn()
: File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 171, in new_conn
: raise NewConnectionError(
: urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f64029eb5e0>: Failed to establish a new connection: [Errno 111] Connection refused
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 439, in send
: resp = conn.urlopen(
: File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 719, in urlopen
: retries = retries.increment(
: File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 436, in increment
: raise MaxRetryError(pool, url, error or ResponseError(cause))
: urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='duck44.local', port=2375): Max retries exceeded with url: /v1.35/info (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f64029eb5e0>: Failed to establish a new connection: [Errno 111] Connection refused'))
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/main.py", line 38, in cli_main
: cli_main
()
: File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/main.py", line 195, in cli_main

: shell.onecmd(cmdline)
: File "/usr/lib/python3.8/cmd.py", line 217, in onecmd
: return func(arg)
: File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/cli.py", line 278, in
: do_command_lam = lambda s, w: do_command(klass, s, w)
: File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/dt_command_abs.py", line 41, in do_command
: cls.commands[word].do_command(cls.commands[word], shell, " ".join(parts[1:]))
: File "/home/jenna/.local/lib/python3.8/site-packages/dt_shell/dt_command_abs.py", line 48, in do_command
: cls.command(shell, args)
: File "/home/jenna/.dt-shell/commands-multi/daffy/devel/build/command.py", line 359, in command
: epoint = docker.info()
: File "/usr/lib/python3/dist-packages/docker/client.py", line 179, in info
: return self.api.info(*args, **kwargs)
: File "/usr/lib/python3/dist-packages/docker/api/daemon.py", line 95, in info
: return self._result(self._get(self._url("/info")), True)
: File "/usr/lib/python3/dist-packages/docker/utils/decorators.py", line 46, in inner
: return f(self, *args, **kwargs)
: File "/usr/lib/python3/dist-packages/docker/api/client.py", line 230, in _get
: return self.get(url, **self._set_request_timeout(kwargs))
: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 546, in get
: return self.request('GET', url, **kwargs)
: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
: resp = self.send(prep, **send_kwargs)
: File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
: r = adapter.send(request, **kwargs)
: File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
: raise ConnectionError(e, request=request)
: requests.exceptions.ConnectionError: HTTPConnectionPool(host='duck44.local', port=2375): Max retries exceeded with url: /v1.35/info (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f64029eb5e0>: Failed to establish a new connection: [Errno 111] Connection refused'))

dts : To report a bug, please also include the contents of /home/jenna/shell-debug-info.txt

Setting up ducky

When I type in the dts --set-version daffy into the terminal I get this back.

Command 'dts' not found, did you mean:

command 'dtis' from snap dtis (1.0.0)
command 'dtc' from snap device-tree-compiler (1.6.1)
command 'bts' from deb devscripts (2.20.2ubuntu2)
command 'dcs' from deb drbl (2.30.5-1)
command 'pts' from deb openafs-client (1.8.4~pre1-1ubuntu2.2)
command 'hts' from deb httptunnel (3.3+dfsg-4)
command 'ots' from deb libots0 (0.5.0-3)
command 'ts' from deb moreutils (0.63-1)
command 'dtc' from deb device-tree-compiler (1.5.1-1)
command 'dms' from deb anacrolix-dms (1.1.0-1)
command 'dte' from deb dte (1.9.1-1)

See 'snap info ' for additional versions.

School Computers vs VM

We have been having trouble dual booting our computers. Would you recommend using the school computers or VM for the project?

Luanch File

I am trying to do homework 3 but will creating a directory it will not show when i tree packages.

IMG_2231

Mission Control Camera Flashing

On the mission control tab in the dashboard the camera is flashing from white to the picture. The duckiebot is correctly configured and we do not know what the issue i

VID_20210917_165856.mp4

s

I attached a video of the issue

Computer Lab

Can u please set me up on the computer and send me the password so I can start working on the hw.

roslaunch unable to launch my project2_circle.launch

Hey Ibrahim when running the roslaunch project2 project2_circle.launch
I receive this error
root@duck02:/code/catkin_ws/src/brendan-reeder/packages# roslaunch
Usage: roslaunch [options] [package] [arg_name:=value...]
roslaunch [options] [...] [arg_name:=value...]

If is a single dash ('-'), launch XML is read from standard input.

roslaunch: error: you must specify at least one input file
root@duck02:/code/catkin_ws/src/brendan-reeder/packages# roslaunch project2 project2_circle.launch
... logging to /root/.ros/log/06022e9c-2ee8-11ec-82de-b827eb8beefb/roslaunch-duck02-2019.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://10.42.0.34:39003/

SUMMARY

PARAMETERS

  • /rosdistro: noetic
  • /rosversion: 1.15.8

NODES
/duck02/
Project2_circle (Project2/circle.py)

ROS_MASTER_URI=http://duck02.local:11311/

ERROR: cannot launch node of type [Project2/circle.py]: Project2
ROS path [0]=/opt/ros/noetic/share/ros
ROS path [1]=/code/catkin_ws/src/dt-ros-commons/packages/duckietown
ROS path [2]=/code/catkin_ws/src/dt-ros-commons/packages/duckietown_msgs
ROS path [3]=/code/catkin_ws/src/dt-ros-commons/packages/duckietown_protocols
ROS path [4]=/code/catkin_ws/src/brendan-reeder/packages/homework2
ROS path [5]=/code/catkin_ws/src/brendan-reeder/packages/homework3
ROS path [6]=/code/catkin_ws/src/brendan-reeder/packages/project2
ROS path [7]=/code/catkin_ws/src/dt-ros-commons/packages/ros_http_api
ROS path [8]=/opt/ros/noetic/share
No processes to monitor
shutting down processing monitor...
... shutting down processing monitor complete

Thank you and best.

Duckiebot Stuck in "Booting" Status, No SSH

Running the command:
dts init_sd_card --hostname duck16 --type duckiebot -- configuration DB19
Then following the prompts gives no errors and no technical warnings. It even says:
"INFO:dts:Verified in 9 minutes, 30 seconds"
"INFO:dts:SD[/dev/sdb] successfully flashed!"
I was unable to verify that the card flashed correctly. The command:
dts init_sd_card --steps verify,setup --hostname duck16 --type duckiebot --configuration DB19
Returns a lengthy Python error I have recorded if needed.
If I attempt to reflash the same card again, it gives the error:
duck16 already exists

We have reproduced this with both the provided MicroSD card, a different SanDisk card, using the provided MicroSD to USB-A adapter, a different MicroSD to SDcard Adapter, and with multiple re-flashes to check combinations.

I do not know how to confirm if our card is flashed correctly.

This card is plugged into our duckiebot correctly, an ethernet wire is connected between bot and our system. This wire works correctly between different systems. The connection to the bot is detected by my laptop and named: "Realtek USB 10/100 LAN" strangely. This is configured to IPv4 Method: "Shared to Other Computers". The duckiebot's ethernet port is flashing with the connection.

I do not know if we are correctly connected to our bot.

The command:
ping duck16.local
Gives no packet loss.
dts fleet discover is now stuck in Status "Booting"
ssh [email protected] Returns: ssh_exchange_identification: read: Connection reset by peer

Operational Keyboard Control Issues

We have everything set up, up to keyboard control but when we run the command, it has the download the GUI tools for the controller and has been downloading for over 30 minutes.

dts duckiebot keyboard_control ROBOT_NAME

Connecting to the Duckiebot

We have run the dts fleet discover command and the duckiebot is not showing up. We're attempting to connect over eduroam as neither my partner or I have ethernet ports on our laptops. I used my password as the password for the sd card flash, but we're getting nothing.

Urgent Wifi Help

For some reason, it now says I have no wifi adapter or some other wording of it, and cant connect to the wifi. How do I fix this?

Can't get into entrypoint

When I run the "dts devel run -M --entrypoint=/bin/bash" command it tells me this
"==> Launching app...
This is an empty launch script. Update it to launch your application.
<== App terminated!"
I was working on it for hours then exited back to my laptop and I can't seem to find a way around this issue.

Ethernet Connection

We made the connection for Ethernet:

Failure2

However, we are receiving an error saying we cannot resolve host name when trying to do ssh [email protected].

Can you assist?

making the ros package

I followed the making the ros package video step by step but for some reason when I check my tree packages at the end, it has no homework 3

Issue with dts devel run -H duck09.local -s -M --cmd bash

INFO:dts:Code synced!
docker: Error response from daemon: Conflict. The container name "/dts-run-valcsce274" is already in use by container "4d3c650f4de831eb618a55576ca48e8870710da439a17368e79222c4e811dd67". You have to remove (or rename) that container to be able to reuse that name.
See 'docker run --help'.

This is the error we get after entering the password.
We can't find either of these containers, and can't rename or remove them because they "don't exist"

Container Startup Issue

Upon running the below command, the process runs as it should until step 11/59 and then hangs up for 10-15 minutes. Then it displays the errors listed below. (Also, I apologize for the annoying amount of text)

csimons@csimons-HP-Elitebook:~/csce274$ dts devel build -H duck22.local

dts : Problems with a command?
:
: Report here: https://github.com/duckietown/duckietown-shell-commands/issues
:
: Troubleshooting:
:
: - If some commands update fail, delete ~/.dt-shell/commands
:
: - To reset the shell to "factory settings", delete ~/.dt-shell
:
: (Note: you will have to re-configure.)
INFO:dts:Commands version: daffy
INFO:dts:looking at /home/csimons/.dt-shell/commands-multi/daffy
DEBUG:duckietown_docker_utils:duckietown_docker_utils version 6.0.82 path /home/csimons/.local/lib/python3.8/site-packages
INFO:dts:Project workspace: /home/csimons/csce274

Project:
Name: csce274
Distro: master
Version: master
Index: Clean
Semantic Version: 0.0.0
Path: /home/csimons/csce274
Type: template-ros
Template Version: 2
Adapters: fs dtproject git


INFO:dts:Retrieving info about Docker endpoint...

Docker Endpoint:
Hostname: duck22
Operating System: Raspbian GNU/Linux 10 (buster)
Kernel Version: 5.10.17-v7+
OSType: linux
Architecture: armv7l
Total Memory: 872.67 MB
CPUs: 4

INFO:dts:Target architecture automatically set to arm32v7.
INFO:dts:Building an image for arm32v7 on armv7l.
INFO:dts:Building an image for arm32v7 on armv7l. Multiarch not needed!
Step 1/59 : ARG REPO_NAME="csimons637/csce274"
Step 2/59 : ARG DESCRIPTION="A place to store CSCE 274 files and robotics projects"
Step 3/59 : ARG MAINTAINER="Charles Simons ([email protected])"
Step 4/59 : ARG ICON="cube"
Step 5/59 : ARG ARCH=arm64v8
Step 6/59 : ARG DISTRO=ente
Step 7/59 : ARG BASE_TAG=${DISTRO}-${ARCH}
Step 8/59 : ARG BASE_IMAGE=dt-ros-commons
Step 9/59 : ARG LAUNCHER=default
Step 10/59 : ARG DOCKER_REGISTRY=docker.io
Step 11/59 : FROM ${DOCKER_REGISTRY}/duckietown/${BASE_IMAGE}:${BASE_TAG} as BASE

dts : Traceback (most recent call last):
: File "/usr/lib/python3.8/http/client.py", line 552, in _get_chunk_left
: chunk_left = self._read_next_chunk_size()
: File "/usr/lib/python3.8/http/client.py", line 519, in _read_next_chunk_size
: return int(line, 16)
: ValueError: invalid literal for int() with base 16: b''
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/usr/lib/python3.8/http/client.py", line 584, in _readinto_chunked
: chunk_left = self._get_chunk_left()
: File "/usr/lib/python3.8/http/client.py", line 554, in _get_chunk_left
: raise IncompleteRead(b'')
: http.client.IncompleteRead: IncompleteRead(0 bytes read)
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/usr/lib/python3/dist-packages/urllib3/response.py", line 425, in _error_catcher
: yield
: File "/usr/lib/python3/dist-packages/urllib3/response.py", line 507, in read
: data = self._fp.read(amt) if not fp_closed else b""
: File "/usr/lib/python3.8/http/client.py", line 455, in read
: n = self.readinto(b)
: File "/usr/lib/python3.8/http/client.py", line 489, in readinto
: return self.readinto_chunked(b)
: File "/usr/lib/python3.8/http/client.py", line 600, in readinto_chunked
: raise IncompleteRead(bytes(b[0:total_bytes]))
: http.client.IncompleteRead: IncompleteRead(0 bytes read)
:
: During handling of the above exception, another exception occurred:
:
: Traceback (most recent call last):
: File "/home/csimons/.local/lib/python3.8/site-packages/dt_shell/main.py", line 38, in cli_main
: cli_main
()
: File "/home/csimons/.local/lib/python3.8/site-packages/dt_shell/main.py", line 195, in cli_main

: shell.onecmd(cmdline)
: File "/usr/lib/python3.8/cmd.py", line 217, in onecmd
: return func(arg)
: File "/home/csimons/.local/lib/python3.8/site-packages/dt_shell/cli.py", line 278, in
: do_command_lam = lambda s, w: do_command(klass, s, w)
: File "/home/csimons/.local/lib/python3.8/site-packages/dt_shell/dt_command_abs.py", line 41, in do_command
: cls.commands[word].do_command(cls.commands[word], shell, " ".join(parts[1:]))
: File "/home/csimons/.local/lib/python3.8/site-packages/dt_shell/dt_command_abs.py", line 48, in do_command
: cls.command(shell, args)
: File "/home/csimons/.dt-shell/commands-multi/daffy/devel/build/command.py", line 527, in command
: for line in docker.api.build(**buildargs, decode=True):
: File "/usr/lib/python3/dist-packages/docker/api/client.py", line 339, in _stream_helper
: for chunk in json_stream(self._stream_helper(response, False)):
: File "/usr/lib/python3/dist-packages/docker/utils/json_stream.py", line 66, in split_buffer
: for data in stream_as_text(stream):
: File "/usr/lib/python3/dist-packages/docker/utils/json_stream.py", line 22, in stream_as_text
: for data in stream:
: File "/usr/lib/python3/dist-packages/docker/api/client.py", line 345, in _stream_helper
: data = reader.read(1)
: File "/usr/lib/python3/dist-packages/urllib3/response.py", line 529, in read
: raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
: File "/usr/lib/python3.8/contextlib.py", line 131, in exit
: self.gen.throw(type, value, traceback)
: File "/usr/lib/python3/dist-packages/urllib3/response.py", line 443, in _error_catcher
: raise ProtocolError("Connection broken: %r" % e, e)
: urllib3.exceptions.ProtocolError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

dts : To report a bug, please also include the contents of /home/csimons/shell-debug-info.txt

Robotics Lab computer

Hey Ibrahim,

You told me to remind you to make me an account on the computer in the robotics lab so i can do my homework since i dont ruin my mac

Project 2 instruction clarification

In project two, we are instructed to create a node that "publishes to the output of the car_cmd_switch_node." By this, do you mean that we should publish to the car_cmd_switch_node itself in order to modify the output of the node, or do you mean that we should publish to the node that the car_cmd_switch_node outputs to? The latter seems right but clarification would be appreciated!

Topic Input Value

We are publishing to the output of car_cmd_switch_node put we do not know what a Twist2DStamped value is.

roslaunch issue

it says it has no processes to monitor and then shuts down
roslaunch project2 goCirlce.launch
it has this output

root@duck15:/code/catkin_ws/src/# roslaunch project2 goCircle.launch
... logging to /root/.ros/log/f747c224-310b-11ec-b931-b827eb624a3a/roslaunch-duck15-70.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://10.42.0.150:34277/

SUMMARY

PARAMETERS

  • /rosdistro: noetic
  • /rosversion: 1.15.8

NODES

ROS_MASTER_URI=http://duck15.local:11311/

No processes to monitor
shutting down processing monitor...
... shutting down processing monitor complete
root@duck15:/code/catkin_ws/src/# tree
bash: tree: command not found

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.