Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken recast (instalation) #48

Closed
zarooba01 opened this issue Dec 20, 2022 · 5 comments
Closed

Broken recast (instalation) #48

zarooba01 opened this issue Dec 20, 2022 · 5 comments
Assignees
Labels
bug installation issue linked to the installation process

Comments

@zarooba01
Copy link
Contributor

File "/usr/local/aamks/evac/rvo2_dto.py", line 78, in _find_closest_exit
path = self.nav.nav_query(src=self.evacuees.get_position_of_pedestrian(evacuee), dst=(x, y), maxStraightPath=999)
File "/usr/local/aamks/geom/nav.py", line 121, in nav_query
status, out = query.findNearestPoly(startPos, polyPickExt, filtr)
AssertionError: m_nav

@zarooba01 zarooba01 added the bug label Dec 20, 2022
@zarooba01 zarooba01 changed the title Broken recast Broken recast (instalation) Dec 20, 2022
@kowalskiw kowalskiw added the installation issue linked to the installation process label Dec 21, 2022
@kowalskiw
Copy link
Member

Probably connected to the #51.

@zarooba01
Copy link
Contributor Author

zarooba01 commented Dec 21, 2022

Problem happens on Ubuntu 22.04. It can be related to badly installed recast and obsolete version of go.

  1. Check recast package
    pip list | grep recast
    You can get this information
    WARNING: Ignoring invalid distribution -recast (/usr/local/lib/python3.10/dist-packages)
  2. Delete recast.
cd /usr/local/lib/python3.10/dist-packages
sudo rm _recast* 
  1. Delete go
    You can read this site: https://go.dev/doc/manage-install#uninstalling
    which go
    It shows where go is installed. Delete this pwd.
sudo rm -rf /usr/local/go
sudo rm /etc/paths.d/go

Delete go-related lines in ~/.bashrc
4. System restart
5. New go install

cd
wget https://golang.org/dl/go1.19.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.19.4.linux-amd64.tar.gz
  1. Recast install
    go install github.com/arl/go-detour/cmd/recast@latest
    Check it in ~/go/bin/
    This dir should contain recast file. If it exists, installation has finished successfully.

  2. Comment some lines in worker_install.sh

# 	# RVO2
# 	echo; echo; echo "Installing RVO2 (agents collisions library) ..."; echo; echo;
# 	cd
# 	[ -d Python-RVO2 ] && { git -C Python-RVO2 pull; } || { git clone https://github.com/sybrenstuvel/Python-RVO2; }
# 	cd Python-RVO2
# 	python3 setup.py build
# 	sudo python3 setup.py install
 	cd

# 	# recast
# 	wget wget https://golang.org/dl/go1.15.1.linux-amd64.tar.gz 
# 	sudo tar -C /usr/local -xzf go1.15.1.linux-amd64.tar.gz
	echo "PATH=\"/usr/local/go/bin:\$PATH\"" >> ~/.profile
	export PATH=$PATH:/usr/local/go/bin

# 	echo; echo; echo "Installing recast (path finding library, navmesh producer)..."; echo; echo;
# 	cd
# 	go get -u github.com/arl/go-detour/cmd/recast
# 	[ -f ~/go/bin/recast ] || { 
# 		echo " ~/go/bin/recast is missing. It is likely that your golang version is obsolete."; 
# 		echo "Perhaps the below commands can fix golang. Once you have fixed golang, you can rerun the installer.

# sudo add-apt-repository ppa:longsleep/golang-backports
# sudo apt update
# sudo apt install golang-go
# ";
# exit; }
  1. Rerun worker_install.sh -i

@kowalskiw
Copy link
Member

@zarooba01 - can we considered this issue as solved? Do you plan any further development here?

@zarooba01
Copy link
Contributor Author

This problem should not appear in the next version of installer/server_install.sh.

@zarooba01
Copy link
Contributor Author

zarooba01 commented Dec 30, 2022

Recast installer fixed, can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug installation issue linked to the installation process
Projects
None yet
Development

No branches or pull requests

2 participants